Submission #467464

#TimeUsernameProblemLanguageResultExecution timeMemory
467464boykutXoractive (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:16: error: 'ask' was not declared in this scope
    7 |       ans[i] = ask(i + 1);
      |                ^~~
Xoractive.cpp:9:1: error: expected '}' at end of input
    9 | }
      | ^
Xoractive.cpp:4:26: note: to match this '{'
    4 | vector<int> guess(int n) {
      |                          ^
Xoractive.cpp:9:1: warning: control reaches end of non-void function [-Wreturn-type]
    9 | }
      | ^