online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <iostream> #include <cmath> #include <fstream> using namespace std; int main() { int flaga = 0; unsigned long long dlugaliczba17znakow; //max 18 446 744 073 709 551 615 (19 znakC3w i '1'); const int numerZnakuOdkonca = 2; // 2 -> przedostatni; const int dzielnik = pow(10, numerZnakuOdkonca - 1); int liczba = 0; { ifstream cin("dane.txt"); if (cin.good()) { while (cin >> flaga >> dlugaliczba17znakow && !cin.eof()) { cout << "prefix :" << flaga << endl; int temp = (dlugaliczba17znakow / dzielnik) % 10;; switch (flaga) { case 25: case 6: case 17: if (temp == 2) cout << temp << " dodajemy +1\n liczba= " << ++liczba; else if (temp == 3) cout << temp << " odejmujemy -1\n liczba= " << --liczba; else cout << temp << "- Czyli ani 2 ani 3"; cout << "\n" + string(30, '_') << endl; break; default: cout << "Ignorujemy wejscie \n" << string(30, '_') << endl; } } cin.close(); } } //cin.get(); return 0; }
15 58666890801020032 40 63682870801030132 17 32134160801043452 6 67209900801062222 25 63735100801063072 15 58666890801020032 40 63682870801030132 17 32134160801043482 6 67209900801062232 25 63735100801063022

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