Submission #767877

#TimeUsernameProblemLanguageResultExecution timeMemory
767877benjaminkleynCluedo (IOI10_cluedo)C++17
100 / 100
10 ms208 KiB
#include "grader.h" #include "cluedo.h" #include <bits/stdc++.h> using namespace std; void Solve() { int M = 1, L = 1, W = 1, res; while (res = Theory(M, L, W)) { if (res == 1) M++; else if (res == 2) L++; else if (res == 3) W++; else break; } return; }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:9:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    9 |     while (res = Theory(M, L, W))
      |            ~~~~^~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...