제출 #637466

#제출 시각아이디문제언어결과실행 시간메모리
637466ramCluedo (IOI10_cluedo)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int solve() { int m = 1, l = 1; w = 1, c = -1; while (true) { c = Theory(m, l, w); if (c == 0) break; if (c == 1) m++; else if (c == 2) l++; else w++; } return; }

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

cluedo.cpp: In function 'int solve()':
cluedo.cpp:5:19: error: 'w' was not declared in this scope
    5 | int m = 1, l = 1; w = 1, c = -1;
      |                   ^
cluedo.cpp:5:26: error: 'c' was not declared in this scope
    5 | int m = 1, l = 1; w = 1, c = -1;
      |                          ^
cluedo.cpp:7:5: error: 'Theory' was not declared in this scope
    7 | c = Theory(m, l, w);
      |     ^~~~~~
cluedo.cpp:13:1: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 | return;
      | ^~~~~~