Submission #550969

#TimeUsernameProblemLanguageResultExecution timeMemory
550969JomnoiCluedo (IOI10_cluedo)C++17
100 / 100
12 ms288 KiB
#include <bits/stdc++.h> #include "grader.h" #include "cluedo.h" using namespace std; void Solve(){ int X[] = {1, 1, 1}, res; while(res = Theory(X[0], X[1], X[2])) { X[res - 1]++; } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:8:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    8 |     while(res = Theory(X[0], X[1], X[2])) {
      |           ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...