online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <bits/stdc++.h> using namespace std; int main() { int n = 3; vector<vector<int>> arr[n]; arr[0].push_back({1,2,3}); arr[0].push_back({4,5,6}); arr[0].push_back({7}); arr[0][2].push_back(8); arr[0][2].push_back(9); arr[1].push_back({10,11,11}); arr[1][0][2] = 12; // cout << arr[1][0][0] ; for (int i=0; i<n; i++) { for (int j=0; j<arr[i].size(); j++) { for (int k=0; k<arr[i][j].size(); k++) cout << arr[i][j][k]; cout << " "; } cout << 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