제출 #1315228

#제출 시각아이디문제언어결과실행 시간메모리
1315228hayford08Cluedo (IOI10_cluedo)C++20
컴파일 에러
0 ms0 KiB
void Solve() {
   // brute force through all possible combinations
   for (int m = 1; m <= 6; m++) {
      for (int l = 1; l <= 10; l++) {
         for (int w = 1; w <= 6; w++) {
            int response = Theory(m, l, w);
            if (response == 0) {
               return;
            }
         }
      }
   }
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:6:28: error: 'Theory' was not declared in this scope
    6 |             int response = Theory(m, l, w);
      |                            ^~~~~~