제출 #444812

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

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

cluedo.cpp: In function 'void solve()':
cluedo.cpp:5:7: error: expected unqualified-id before 'int'
    5 | int m,int l,int w;
      |       ^~~
cluedo.cpp:6:5: error: 'l' was not declared in this scope
    6 |   m=l=w=1;
      |     ^
cluedo.cpp:6:7: error: 'w' was not declared in this scope
    6 |   m=l=w=1;
      |       ^