제출 #1337498

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

void Solve(){
   int a=1,b=1;c=1;
   int qry = Theory(a,b,c);
   while(qry){
      if(qry==1)a++;
      else if(qry==2)b++;
      else c++;
      qry = Theory(a,b,c);
   }
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:5:16: error: 'c' was not declared in this scope
    5 |    int a=1,b=1;c=1;
      |                ^