online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <unordered_map> #include <iostream> int main() { const std::unordered_map<int, int> my_map = { { 1, 2 }, { 3, 4 }, { 5, 6 } }; const auto hasher{ my_map.hash_function() }; for (const auto& [key, value] : my_map) { // Structured bindings were introduced in C++17 const auto hash_value = hasher(key); std::cout << "(h: " << hash_value << ", k: " << key << ", v: " << value << ") "; } std::cout << std::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