제출 #767877

#제출 시각아이디문제언어결과실행 시간메모리
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; }

컴파일 시 표준 에러 (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...