Submission #370228

# Submission time Handle Problem Language Result Execution time Memory
370228 2021-02-23T15:15:46 Z NachoLibre Cluedo (IOI10_cluedo) C++17
0 / 100
1 ms 256 KB
#include"grader.h"
int 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.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 | }
      | ^
# Verdict Execution time Memory Grader output
1 Failed 1 ms 256 KB wrong parameter
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Failed 1 ms 256 KB wrong parameter
2 Halted 0 ms 0 KB -