online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include<vector> int main() { int x,y; std::cin>>x>>y; //create a 2D vector std::vector<std::vector<char>> n(x, std::vector<char>(y)); //iterate through rows for(auto& row: n) { //iterate through each element in the row for(auto& col: row) { std::cout<<"enter element: "<<std::endl; std::cin>>col; //take input from user } } int a,b; std::cout<<"a and b"<<std::endl; std::cin>>a>>b; std::cout<<"element at position: "<<a<<" "<<b <<" is: "<<n[a][b]; }

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