제출 #253333

#제출 시각아이디문제언어결과실행 시간메모리
253333imeimi2000Cluedo (IOI10_cluedo)C++17
100 / 100
14 ms384 KiB
int Theory(int, int, int); void Solve() { int x, a[] = { 0, 6, 10, 6 }; while (x = Theory(a[1], a[2], a[3])) --a[x]; }

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

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