답안 #474000

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
474000 2021-09-16T15:21:07 Z ValiAntonie Cluedo (IOI10_cluedo) C++14
컴파일 오류
0 ms 0 KB
#include "grader.h"
#include "cluedo.h"
 
void Solve(){
   int r, a = 1, b = 1, c = 1;
   while(ok != 1){
   r = Theory(a,b,c);
   while(r == 1){
    a++;
   }
   while(r == 2){
    b++;
   }
   while(r == 3){
    c++;
   }
   ok = 1;
   return;
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:6:10: error: 'ok' was not declared in this scope
    6 |    while(ok != 1){
      |          ^~
cluedo.cpp:19:1: error: expected '}' at end of input
   19 | }
      | ^
cluedo.cpp:4:13: note: to match this '{'
    4 | void Solve(){
      |             ^