Submission #651688

# Submission time Handle Problem Language Result Execution time Memory
651688 2022-10-19T19:07:26 Z LucaGreg Cluedo (IOI10_cluedo) C++17
Compilation error
0 ms 0 KB
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>

using namespace std;

void Solve(){
    int m = 1, l = 1, w = 1;
    while(true){
        int t = theory(m, l, w);
        if(t==0) break;
        else if(t==1) m++;
        else if(t==2) l++;
        else w++;
    }
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:10:17: error: 'theory' was not declared in this scope; did you mean 'Theory'?
   10 |         int t = theory(m, l, w);
      |                 ^~~~~~
      |                 Theory