Submission #1190818

#TimeUsernameProblemLanguageResultExecution timeMemory
1190818mayacCoreputer (IOI23_coreputer)C++20
Compilation error
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 {}; }

Compilation message (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 });
      |                 ^~~~~~~~~~~~~~