제출 #768261

#제출 시각아이디문제언어결과실행 시간메모리
768261canadavid1Cluedo (IOI10_cluedo)C++14
100 / 100
10 ms280 KiB
#include "grader.h"
#include "cluedo.h"

void Solve(){
   int r;
   int a[3]{1,1,1};
   while(r=Theory(a[0],a[1],a[2])) a[r-1]++;
}

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

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