Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Don't Use Boost
C++11
-pedantic
#include <bits/stdc++.h>
int main(){
std::unordered_map<std::string, std::vector<int>> testmap;
int x = 0;
testmap["A"].push_back(x);
testmap["A"].push_back(x+1);
for (auto & x : testmap["A"])
std::cout << x << std::endl;
}
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic
0
1
Exit Code:
0