제출 #1201866

#제출 시각아이디문제언어결과실행 시간메모리
1201866PlayVoltzCluedo (IOI10_cluedo)C++20
컴파일 에러
0 ms0 KiB
#include "grader.h" #include "cluedo.h" #include <bits/stdc++.h> using namespace std; void Solve(){ int a[4]={0, 1, 1, 1}; for (int i=Theory(a[1], a[2], a[3]); i; i=res=Theory(a[1], a[2], a[3]))++a[i]; }

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:8:51: error: 'res' was not declared in this scope
    8 |         for (int i=Theory(a[1], a[2], a[3]); i; i=res=Theory(a[1], a[2], a[3]))++a[i];
      |                                                   ^~~