Submission #768261

#TimeUsernameProblemLanguageResultExecution timeMemory
768261canadavid1Cluedo (IOI10_cluedo)C++14
100 / 100
10 ms280 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ int r; int a[3]{1,1,1}; while(r=Theory(a[0],a[1],a[2])) a[r-1]++; }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:7:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    7 |    while(r=Theory(a[0],a[1],a[2])) a[r-1]++;
      |          ~^~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...