Submission #370224

#TimeUsernameProblemLanguageResultExecution timeMemory
370224NachoLibreCluedo (IOI10_cluedo)C11
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.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int]
    2 | Solve(){
      | ^~~~~
cluedo.c: In function 'Solve':
cluedo.c:3:24: 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.c:3:40: error: lvalue required as increment operand
    3 |  for(int x=1,y=1,z=1,a;a=Theory(x,y,z);++(a^1?a^2?z:y:x));
      |                                        ^~
cluedo.c:4:1: warning: control reaches end of non-void function [-Wreturn-type]
    4 | }
      | ^