Submission #508682

# Submission time Handle Problem Language Result Execution time Memory
508682 2022-01-13T14:32:49 Z tabr Cluedo (IOI10_cluedo) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
#ifdef tabr
#include "library/debug.cpp"
#else
#define debug(...)
#endif

void Solve() {
    int x = 1;
    int y = 1;
    int z = 1;
    while (true) {
        int res = Theory(x, y, z);
        if (res == 0) {
            break;
        } else if (res == 1) {
            x++;
        } else if (res == 2) {
            y++;
        } else {
            z++;
        }
    }
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:14:19: error: 'Theory' was not declared in this scope
   14 |         int res = Theory(x, y, z);
      |                   ^~~~~~