online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <bits/stdc++.h> using namespace std; int main() { int x; cout << "Podaj liczbe: "; cin >> x; std::vector <int> liczbypierwsze; for (int i = 1; i < x+1; i++) { int a = 0; for (int j = 1; j < i+1; j++) { if (i % j == 0){ a++; } } if (a == 2){ liczbypierwsze.push_back(i); } } for (int i = 0; i < liczbypierwsze.size(); i++) { cout << liczbypierwsze[i] << ", "; } 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