online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <vector> // a void function to display the vector after every moove void display_current_array(const std::vector<std::vector<int>> &vec){ for(auto &row: vec) { for(auto &col: row) { std::cout << col ; } std::cout<<std::endl; } } int main(){ int size; // ask the player to give a board size std::cout << "What is the size of your Hex Board ? "; std::cin>> size; // create the 2D STD::VECTOR with size rows and size columns to represent the board std::vector<std::vector<int>> vec(size, std::vector<int>(size)); // the player will choose colors that we will store as an enum type enum colors {BLUE, RED}; //NO NEED TO INITIALIZE EACH INDIVIDUAL CELL IN THE 2D VECTOR SINCE THEY ARE ALREADY INITIALIED TO 0 display_current_array(vec); }

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