제출 #508682

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

컴파일 시 표준 에러 (stderr) 메시지

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);
      |                   ^~~~~~