제출 #370223

#제출 시각아이디문제언어결과실행 시간메모리
370223NachoLibreCluedo (IOI10_cluedo)C++17
컴파일 에러
0 ms0 KiB
#include"grader.h" f() { } void Solve(){ for(int x=1,y=1,z=1,a;a=Theory(x,y,z);++(a^1?a^2?z:y:x)); }

컴파일 시 표준 에러 (stderr) 메시지

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