제출 #433887

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

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

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