Submission #1175240

#TimeUsernameProblemLanguageResultExecution timeMemory
1175240wernklungCluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
void Solve() { set<int> m_choice = {1,2,3,4,5,6}; set<int> l_choice = {1,2,3,4,5,6,7,8,9,10}; set<int> w_choice = {1,2,3,4,5,6}; while(true){ int m=*m_choice.begin(); int l=*l_choice.begin(); int w=*w_choice.begin(); int result = Theory(m,l,w); if(result == 0){ break; } else if(result == 1){ m_choice.erase(m); } else if(result == 2){ l_choice.erase(l); } else if(result == 3){ w_choice.erase(w); } } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:2:4: error: 'set' was not declared in this scope
    2 |    set<int> m_choice = {1,2,3,4,5,6};
      |    ^~~
cluedo.cpp:2:8: error: expected primary-expression before 'int'
    2 |    set<int> m_choice = {1,2,3,4,5,6};
      |        ^~~
cluedo.cpp:3:8: error: expected primary-expression before 'int'
    3 |    set<int> l_choice = {1,2,3,4,5,6,7,8,9,10};
      |        ^~~
cluedo.cpp:4:8: error: expected primary-expression before 'int'
    4 |    set<int> w_choice = {1,2,3,4,5,6};
      |        ^~~
cluedo.cpp:7:12: error: 'm_choice' was not declared in this scope
    7 |     int m=*m_choice.begin();
      |            ^~~~~~~~
cluedo.cpp:8:12: error: 'l_choice' was not declared in this scope
    8 |     int l=*l_choice.begin();
      |            ^~~~~~~~
cluedo.cpp:9:12: error: 'w_choice' was not declared in this scope
    9 |     int w=*w_choice.begin();
      |            ^~~~~~~~
cluedo.cpp:11:18: error: 'Theory' was not declared in this scope
   11 |     int result = Theory(m,l,w);
      |                  ^~~~~~