제출 #1041149

#제출 시각아이디문제언어결과실행 시간메모리
1041149kheiraCluedo (IOI10_cluedo)C++14
컴파일 에러
0 ms0 KiB
#include "cluedo.h"
#include "grader.h"
using namespace std;
 
void solve() {
    int M = 1;
    int L = 1;
    int W = 1;
 
    while (true) {
        int result = Theory(M, L, W);
        
        if (result == 0) {
            return;
        } 
        else if (result == 1) {
            M++;
        } 
        else if (result == 2) {
            L++;
        } 
        else if (result == 3) {
            W++;
        }
        
        if (M > 6) M = 1;
        if (L > 10) L = 1;
        if (W > 6) W = 1;
    }
    return;
}

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

/usr/bin/ld: /tmp/cc00GejT.o: in function `main':
grader.c:(.text.startup+0x49): undefined reference to `Solve()'
collect2: error: ld returned 1 exit status