제출 #286931

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

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

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