Submission #467466

#TimeUsernameProblemLanguageResultExecution timeMemory
467466boykutXoractive (IZhO19_xoractive)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "interactive.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:10:1: error: expected '}' at end of input
   10 | }
      | ^
Xoractive.cpp:5:26: note: to match this '{'
    5 | vector<int> guess(int n) {
      |                          ^
Xoractive.cpp:10:1: warning: control reaches end of non-void function [-Wreturn-type]
   10 | }
      | ^