online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main() { int a = 10000; long square(int num) { return (long)num * (long)num; }; long total = 0; while (a > 0) { a--; total += square(a); //printf("a is %ld and square is %ld and total %ld \n", a, square(a), total ); }; printf("total is %ld ", total ); 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