online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <vector> using namespace std; int main() { int rows, cols, temp; vector<vector<int>> matrix; cout << "Enter the row number:" << endl; cin >> rows; for (int i = 0; i < rows; i++){ vector<int> v; cout << "Enter the column no.of array " << i << endl; cin >> cols; cout << "The elements in the array:" << endl; for (int j = 0; j < cols; j++){ cin >> temp; v.push_back(temp); } matrix.push_back(v); } cout << endl; for( auto i: matrix){ for(int j: i) cout << j << " "; cout << endl; } }

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