제출 #542108

#제출 시각아이디문제언어결과실행 시간메모리
542108inventiontimeCluedo (IOI10_cluedo)C++17
100 / 100
11 ms256 KiB
#include "grader.h" #include "cluedo.h" const int M = 6, L = 10, W = 6; void Solve(){ int m = 1, l = 1, w = 1; int 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:10:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   10 |    while(r = Theory(m, l, w)) {
      |          ~~^~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...