Submission #1096723

# Submission time Handle Problem Language Result Execution time Memory
1096723 2024-10-05T04:11:15 Z stdfloat Xoractive (IZhO19_xoractive) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;

vector<int> guess(int n) {
	vector<int> ans;
	for (int i = 1; i <= n; i++)
		ans.push_back(ask(i));

	return ans;
}

Compilation message

Xoractive.cpp: In function 'std::vector<int> guess(int)':
Xoractive.cpp:7:17: error: 'ask' was not declared in this scope
    7 |   ans.push_back(ask(i));
      |                 ^~~