답안 #717741

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
717741 2023-04-02T11:57:41 Z nikos Cluedo (IOI10_cluedo) C++17
컴파일 오류
0 ms 0 KB
#include "grader.h"
#include "cluedo.h"

void Solve(){
    int r;
    int i = 1, j = 1, l = 1;
    while(true){
        r = Theory(i, j, l)
        if(r == 0) return;
        if(r == 1) i++;
        if(r == 2) j++;
        if(r == 3) l++;
    }
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:8:28: error: expected ';' before 'if'
    8 |         r = Theory(i, j, l)
      |                            ^
      |                            ;
    9 |         if(r == 0) return;
      |         ~~