제출 #1275719

#제출 시각아이디문제언어결과실행 시간메모리
1275719marckvCluedo (IOI10_cluedo)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; // Provided by the grader (you don’t implement this) int Theory(int murderer, int location, int weapon); // You must implement this void Solve() { // your logic goes here // repeatedly call Theory(...) until it returns 0 int i=1, j=1, k=1; while (true) { int wrong = Theory(i, j, k) switch (wrong) { case 0: return; case 1: i++; break; case 2: j++; break; case 3: k++; break; } } // for (int i=1; i<=6; i++) { // for (int j=1; j<=10; j++) { // for (int k=1; k<=6; k++) { // if (Theory(i, j, k) == 0) return; // } // } // } }

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:14:7: error: expected ',' or ';' before 'switch'
   14 |       switch (wrong) {
      |       ^~~~~~