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 file("plik.txt"); if (! file) { cerr << "Plik nie jest dostepny!"; return EXIT_FAILURE; } int d1, d2, d3, d4, d5; while (file >> d1 >> d2 >> d3 >> d4 >> d5) { cout << d1 << " " << d2 << " " << d3 << " " << d4 << " " << d5 << endl; } file.close(); return EXIT_SUCCESS; }
3 5 6 2 5 5 4 1 2 3 4 1 4 5 6

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