Submission #411413

#TimeUsernameProblemLanguageResultExecution timeMemory
411413alextodoranCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
void Solve () { vector <int> va, vb, vc; for(int i = 1; i <= 6; i++) va.push_back(i); for(int i = 1; i <= 10; i++) vb.push_back(i); for(int i = 1; i <= 6; i++) vc.push_back(i); while(true) { int clue = Theory(va.back(), vb.back(), vc.back()); if(clue == 0) return; if(clue == 1) va.pop_back(); if(clue == 2) vb.pop_back(); if(clue == 3) vc.pop_back(); } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:3:5: error: 'vector' was not declared in this scope
    3 |     vector <int> va, vb, vc;
      |     ^~~~~~
cluedo.cpp:3:13: error: expected primary-expression before 'int'
    3 |     vector <int> va, vb, vc;
      |             ^~~
cluedo.cpp:5:9: error: 'va' was not declared in this scope
    5 |         va.push_back(i);
      |         ^~
cluedo.cpp:7:9: error: 'vb' was not declared in this scope
    7 |         vb.push_back(i);
      |         ^~
cluedo.cpp:9:9: error: 'vc' was not declared in this scope
    9 |         vc.push_back(i);
      |         ^~
cluedo.cpp:12:27: error: 'va' was not declared in this scope
   12 |         int clue = Theory(va.back(), vb.back(), vc.back());
      |                           ^~
cluedo.cpp:12:38: error: 'vb' was not declared in this scope
   12 |         int clue = Theory(va.back(), vb.back(), vc.back());
      |                                      ^~
cluedo.cpp:12:49: error: 'vc' was not declared in this scope
   12 |         int clue = Theory(va.back(), vb.back(), vc.back());
      |                                                 ^~
cluedo.cpp:12:20: error: 'Theory' was not declared in this scope
   12 |         int clue = Theory(va.back(), vb.back(), vc.back());
      |                    ^~~~~~