제출 #1324424

#제출 시각아이디문제언어결과실행 시간메모리
1324424sh_qaxxorov_571Cluedo (IOI10_cluedo)C++20
컴파일 에러
0 ms0 KiB
#include "cluedo.h"

void Solve() {
    int M = 1;  // Murderer
    int L = 1;  // Location
    int W = 1;  // Weapon
    
    while (true) {
        int result = Theory(M, L, W);
        
        if (result == 0) {
            // Correct combination found
            return;
        }
        else if (result == 1) {
            M++;  // Murderer is wrong
        }
        else if (result == 2) {
            L++;  // Location is wrong
        }
        else if (result == 3) {
            W++;  // Weapon is wrong
        }
    }
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:9:22: error: 'Theory' was not declared in this scope
    9 |         int result = Theory(M, L, W);
      |                      ^~~~~~