제출 #1362167

#제출 시각아이디문제언어결과실행 시간메모리
1362167something2075Cluedo (IOI10_cluedo)C++20
컴파일 에러
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;
}

컴파일 시 표준 에러 (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);
      |               ^~~~~~