Submission #861219

# Submission time Handle Problem Language Result Execution time Memory
861219 2023-10-15T16:47:35 Z Ariadna Cluedo (IOI10_cluedo) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>

using namespace std;

void Solve() {
    int murderer = 1, location = 1, weapon = 1;
    while (murderer <= 6 && location <= 10 && weapon <= 6) {
        int ans = Theory(murderer, location, weapon);
        if (ans == 1) ++murderer;
        else if (ans == 2) ++location;
        else if (ans == 3) ++weapon;
        else return;
    }
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:9:19: error: 'Theory' was not declared in this scope
    9 |         int ans = Theory(murderer, location, weapon);
      |                   ^~~~~~