Submission #652568

# Submission time Handle Problem Language Result Execution time Memory
652568 2022-10-23T07:28:07 Z ngano_upat_na Cluedo (IOI10_cluedo) C++17
Compilation error
0 ms 0 KB
#include "bits/stdc++.h"
using namespace std;

void Solve() {
    int mur = 1, loc = 1, wep = 1;
    int res = -1;
    while (true) {
        int res = Theory(mur,loc,wep);
        if (res == 0) return;
        if (res == 1) mur++;
        if (res == 2) loc++;
        if (res == 3) wep++;
    }   
}   

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:8:19: error: 'Theory' was not declared in this scope
    8 |         int res = Theory(mur,loc,wep);
      |                   ^~~~~~
cluedo.cpp:6:9: warning: unused variable 'res' [-Wunused-variable]
    6 |     int res = -1;
      |         ^~~