online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <map> #include <string> std::map<std::string, int>& passMapByReference(std::map<std::string, int>& temp_map){ return temp_map; } void printMap(std::map<std::string, int>& temp_map ){ std::cout << temp_map.size() << std::endl; } int main() { std::map<std::string, int> map; map["asd"] = 1; map["dsa"] = 2; printMap(map); std::map<std::string, int>& copyMap = passMapByReference(map); printMap(copyMap); map["ksdbj"] = 3; map["askdnijabsd"] = 4; printMap(map); //this should print 4 printMap(copyMap); 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