Submission #1082760

#TimeUsernameProblemLanguageResultExecution timeMemory
1082760toast12Cluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ vector<int> guess = {1, 1, 1}; int x = Theory(guess[0], guess[1], guess[2]); while (x != 0) { guess[x-1]++; x = Theory(guess[0], guess[1], guess[2]); } return; }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:5:4: error: 'vector' was not declared in this scope
    5 |    vector<int> guess = {1, 1, 1};
      |    ^~~~~~
cluedo.cpp:5:11: error: expected primary-expression before 'int'
    5 |    vector<int> guess = {1, 1, 1};
      |           ^~~
cluedo.cpp:6:19: error: 'guess' was not declared in this scope
    6 |    int x = Theory(guess[0], guess[1], guess[2]);
      |                   ^~~~~