제출 #342087

#제출 시각아이디문제언어결과실행 시간메모리
342087AlmaCluedo (IOI10_cluedo)C++14
컴파일 에러
0 ms0 KiB
#include <iostream> #include <cluedo.h> #include <grader.h> using namespace std; void Solve () { int M = 1; int L = 1; int W = 1; while (Theory (M, L, W) != 0) { if (Theory (M, L, W) == 1) { M++; } else if (Theory (M, L, W) == 2) { L++; } else { W++; } } return Theory (M, L, W); }

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:13:27: error: return-statement with a value, in function returning 'void' [-fpermissive]
   13 |     return Theory (M, L, W);
      |                           ^