제출 #1311173

#제출 시각아이디문제언어결과실행 시간메모리
1311173pwalCluedo (IOI10_cluedo)C++20
컴파일 에러
0 ms0 KiB
#include "cluedo.h"
void solve()
{
  int m=1,l=1,w=1;
  int res=Theory(m,l,w);
  while(res!=0)
  {
    if(res==1)++m;
    else if(res==2)++l;
    else ++w;
    res=Theory(m,l,w);
  }
}

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

cluedo.cpp: In function 'void solve()':
cluedo.cpp:5:11: error: 'Theory' was not declared in this scope
    5 |   int res=Theory(m,l,w);
      |           ^~~~~~