제출 #1190818

#제출 시각아이디문제언어결과실행 시간메모리
1190818mayacCoreputer (IOI23_coreputer)C++20
컴파일 에러
0 ms0 KiB
#include <iostream> #include <vector> #include <stack> using namespace std; vector<int> malfunctioning_cores(int N) { int t = run_diagnostic({ 0 }); if (t == 1)return { 0 }; if (t == -1)return { 1 }; t= run_diagnostic({ 0 ,1}); if (t == 1)return { 0,1 }; return {}; }

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

coreputer.cpp: In function 'std::vector<int> malfunctioning_cores(int)':
coreputer.cpp:7:17: error: 'run_diagnostic' was not declared in this scope
    7 |         int t = run_diagnostic({ 0 });
      |                 ^~~~~~~~~~~~~~