제출 #550969

#제출 시각아이디문제언어결과실행 시간메모리
550969JomnoiCluedo (IOI10_cluedo)C++17
100 / 100
12 ms288 KiB
#include <bits/stdc++.h> #include "grader.h" #include "cluedo.h" using namespace std; void Solve(){ int X[] = {1, 1, 1}, res; while(res = Theory(X[0], X[1], X[2])) { X[res - 1]++; } }

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

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