제출 #370221

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