Submission #1362167

#TimeUsernameProblemLanguageResultExecution timeMemory
1362167something2075Cluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;

void Solve() {
    int pers = 1, location = 1, weapon = 1;

    int res = -1;
    while (res != 0) {
        res = Theory(pers, location, weapon);
        if (res == 1) {
            pers += 1;
        } else if (res == 2) {
            location += 1;
        } else {
            weapon += 1;
        }
    }
    return;
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:11:15: error: 'Theory' was not declared in this scope
   11 |         res = Theory(pers, location, weapon);
      |               ^~~~~~