Submission #467862

#TimeUsernameProblemLanguageResultExecution timeMemory
467862iskhakkutbilimXoractive (IZhO19_xoractive)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; vector<int> guess(int n){ vector<int> ans(n); for(int i = 0;i < n; i++){ ans[i] = ask(i + 1); } return ans; }

Compilation message (stderr)

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