Submission #370226

#TimeUsernameProblemLanguageResultExecution timeMemory
370226NachoLibreCluedo (IOI10_cluedo)C++98
Compilation error
0 ms0 KiB
#include"grader.h" Solve(){ for(int x=1,y=1,z=1,a;a=Theory(x,y,z);++(a^1?a^2?z:y:x)); }

Compilation message (stderr)

cluedo.cpp:2:7: error: ISO C++ forbids declaration of 'Solve' with no type [-fpermissive]
    2 | Solve(){
      |       ^
cluedo.cpp: In function 'int Solve()':
cluedo.cpp:3:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    3 |  for(int x=1,y=1,z=1,a;a=Theory(x,y,z);++(a^1?a^2?z:y:x));
      |                        ~^~~~~~~~~~~~~~
cluedo.cpp:4:1: warning: no return statement in function returning non-void [-Wreturn-type]
    4 | }
      | ^