답안 #909380

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
909380 2024-01-17T07:38:17 Z MinhAnhnd Coreputer (IOI23_coreputer) C++17
컴파일 오류
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);
      |     ^~~~