online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <map> #include <vector> #include <cassert> using namespace std; int main() { map<int, vector <int>> someMap; someMap[5] = {5, 2, 3, 7}; someMap[151] = {5, 9, 20}; for(const std::pair<int, std::vector<int>> &myPair: someMap) { assert(!myPair.second.empty()); std::cout << myPair.second.back() <<std::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