fork(4) download
  1. #include <map>
  2. #include <string>
  3. using namespace std;
  4.  
  5. enum some_enum { BOSS, SLAVE, IT_GUY};
  6.  
  7. int main() {
  8. map<string, pair<some_enum, string> > m = {
  9. { "1234a", { BOSS, "Alice" }},
  10. { "5678b", { SLAVE, "Bob" }},
  11. { "1111b", { IT_GUY, "Cathy" }},
  12. };
  13. return 0;
  14. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
Standard output is empty