online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <map> int main() { std::map<std::string,std::pair<int,std::map<std::string,int>>> m{ { "first", { 5, {{"a", 10}, {"b", 20}} }} , { "second", { 6, {{"c", 100}, {"d", 200},{"e", 300} }}}, { "third", { 7, {{"f", 400}} } }}; ////////////////////////////////////////////////////////////////// //PRINTING THE CONTENT OF THE MAP auto debutBegin = m.cbegin(); //const iterator to beginning of outer map auto debutEnd = m.cend(); //const iterator to end of outer map while(debutBegin!=debutEnd) { auto beg = debutBegin->second.second.cbegin(); //const iterator to beginning of inner map auto end = debutBegin->second.second.cend();//const iterator to end of inner map std::cout<<debutBegin->first<<" ---- "<<debutBegin->second.first<<std::endl; while(beg!=end) { std::cout<<beg->first<<" "; std::cout<<beg->second<<std::endl; ++beg; } debutBegin++; } 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