online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <cstdlib> #include <time.h> #include <iomanip> #define VECES 20000 using namespace std; int main() { int dado1, dado2, valor[13]; srand(time(NULL)); for(int j=2; j<13; j++){ valor[j]=0; } for(int j=0; j<VECES; j++){ dado1 = 1+rand()%6; dado2 = 1+rand()%6; valor[dado1+dado2] += 1; } for (int j=2; j<13; j++){ cout<<setw(3)<<j<<" saliΓ³:"; cout<<setw(9)<<valor[j]<<" veces."<<endl; } return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue