Submission #444812

#TimeUsernameProblemLanguageResultExecution timeMemory
444812duckit70Cluedo (IOI10_cluedo)C++14
Compilation error
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); } }

Compilation message (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;
      |       ^