online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int counter = 0; const int TARGET = 49; void uvw(){ counter++; } int main() { int whoami; cin >> whoami; for(int i = 0; i < 7; i++ ){ int j = i; while( j < whoami ){ uvw(); j++; } } if (counter == TARGET){ cout << counter << " calls of uvw() (Correct answer)." <<endl; } else { cout << counter << " calls of uvw() (Wrong answer - number of calls should be " << TARGET << ")." << endl; } }

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