제출 #308674

#제출 시각아이디문제언어결과실행 시간메모리
308674zoooma13Cluedo (IOI10_cluedo)C++14
100 / 100
13 ms256 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ int i=1 ,j=1 ,k=1 ,q; while(q = Theory(i ,j ,k)){ if(q == 1) i++; if(q == 2) j++; if(q == 3) k++; } }

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

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