제출 #1269708

#제출 시각아이디문제언어결과실행 시간메모리
1269708proofyXoractive (IZhO19_xoractive)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
#define ll long long

vector<int> guess(int n) {
	vector<int> a(n);
	for (int i = 0; i < n; i++) a[i] = ask(i + 1);
	return a;
}

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

Xoractive.cpp: In function 'std::vector<int> guess(int)':
Xoractive.cpp:7:44: error: 'ask' was not declared in this scope
    7 |         for (int i = 0; i < n; i++) a[i] = ask(i + 1);
      |                                            ^~~