제출 #370224

#제출 시각아이디문제언어결과실행 시간메모리
370224NachoLibreCluedo (IOI10_cluedo)C11
컴파일 에러
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)); }

컴파일 시 표준 에러 (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 | }
      | ^