제출 #685054

#제출 시각아이디문제언어결과실행 시간메모리
685054acceptifyCluedo (IOI10_cluedo)C++17
100 / 100
14 ms292 KiB
#include "grader.h" #include "cluedo.h" #include <bits/stdc++.h> using namespace std; void Solve() { int a = 1, b = 1, c = 1, x; while (x = Theory(a, b, c)) x == 1 ? a++ : x == 2 ? b++ : c++; }

컴파일 시 표준 에러 (stderr) 메시지

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