Submission #370224

# Submission time Handle Problem Language Result Execution time Memory
370224 2021-02-23T15:14:40 Z NachoLibre Cluedo (IOI10_cluedo) C
Compilation error
0 ms 0 KB
#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

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 | }
      | ^