제출 #1284191

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

using namespace std;

int Theory(int M, int L, int W);

void Solve(){
   int m, l, w;
   m=0;
   l=0;
   w=0;
   while(true){
      t = Theory(m, l, w);
      if(t==0) break;
      else if(t==1) m++;
      else if(t==2) l++;
      else w++;
   }

   return;
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:14:7: error: 't' was not declared in this scope
   14 |       t = Theory(m, l, w);
      |       ^