제출 #1011584

#제출 시각아이디문제언어결과실행 시간메모리
1011584SulACluedo (IOI10_cluedo)C++17
0 / 100
0 ms344 KiB
#include "grader.h" #include "cluedo.h" char a[3] = {1,1,1}, x = 0; void Solve() { while (x = Theory((int)a[0], (int)a[1], (int)a[2])) { a[x-1]++; } }

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

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