online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <string> using namespace std; int main() { string a = "23 sokol czarny"; int b = stoi(a); string c = a.substr(to_string(b).length()); while (c[0] == ' ') c.erase(0, 1); cout << b << "|" << c << endl; 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