Submission #909380

#TimeUsernameProblemLanguageResultExecution timeMemory
909380MinhAnhndCoreputer (IOI23_coreputer)C++17
Compilation error
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; }

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