#include <iostream>//#include <multimap>#include <unordered_map> using namespace std; int main(){ unordered_multimap <int,int> prices; prices.insert(make_pair(0, 0)); cout << prices[0] << endl; return 0;}
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:11:19: error: no match for ‘operator[]’ (operand types are ‘std::unordered_multimap<int, int>’ and ‘int’) cout << prices[0] << endl; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!