online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <map> #include <iostream> using namespace std; struct Comparator { bool operator() (const int& x, const int& y) const { return x > y; } }; int main () { map<int,int,Comparator> M = { {1,2}, {3,4}, {5,6} }; for (auto& [key, value] : M) cout << key << ' ' << value << endl; }

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