Submission #768290

# Submission time Handle Problem Language Result Execution time Memory
768290 2023-06-27T21:10:40 Z simene Cluedo (IOI10_cluedo) C++14
0 / 100
1 ms 208 KB
#include "grader.h"
void Solve(){int m[4];int a;while(a=Theory(m[1]+1,m[2]+1,m[3]+1))m[a]++;}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:2:36: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    2 | void Solve(){int m[4];int a;while(a=Theory(m[1]+1,m[2]+1,m[3]+1))m[a]++;}
      |                                   ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Failed 0 ms 208 KB wrong parameter
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Failed 1 ms 208 KB wrong parameter
2 Halted 0 ms 0 KB -