Submission #909380

# Submission time Handle Problem Language Result Execution time Memory
909380 2024-01-17T07:38:17 Z MinhAnhnd Coreputer (IOI23_coreputer) C++17
Compilation error
0 ms 0 KB
#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

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