제출 #909380

#제출 시각아이디문제언어결과실행 시간메모리
909380MinhAnhndCoreputer (IOI23_coreputer)C++17
컴파일 에러
0 ms0 KiB
#include "coreputer.h" #include <bits/stdc++.h> using namespace std; std::vector<int> malfunctioning_cores(int N) { vector<int> a; for (int i = 0;i<=min(7,N-1);i++){ a.push_back(i); } half = run_diagnostic(a); vector<int> b; for (int i = 0;i<=N-1;i++){ b.push_back(1); } return b; }

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

coreputer.cpp: In function 'std::vector<int> malfunctioning_cores(int)':
coreputer.cpp:10:5: error: 'half' was not declared in this scope
   10 |     half = run_diagnostic(a);
      |     ^~~~