online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <fstream> using namespace std; int main() { ifstream arq("file.txt"); int points=0, total_points=0; cin >> points; arq >> total_points; total_points += points; arq.close(); ofstream output("file.txt"); output << total_points; output.close(); }
12

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