제출 #937896

#제출 시각아이디문제언어결과실행 시간메모리
937896Muaath_5Cluedo (IOI10_cluedo)C++17
100 / 100
8 ms344 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ int m = 1, l = 1, w = 1, r; while (r = Theory(m, l, w)) { if (r == 1) m++; if (r == 2) l++; if (r == 3) w++; } }

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:6:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    6 |  while (r = Theory(m, l, w)) {
      |         ~~^~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...