Submission #308674

#TimeUsernameProblemLanguageResultExecution timeMemory
308674zoooma13Cluedo (IOI10_cluedo)C++14
100 / 100
13 ms256 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ int i=1 ,j=1 ,k=1 ,q; while(q = Theory(i ,j ,k)){ if(q == 1) i++; if(q == 2) j++; if(q == 3) k++; } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:6:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    6 |     while(q = Theory(i ,j ,k)){
      |           ~~^~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...