Submission #1096784

#TimeUsernameProblemLanguageResultExecution timeMemory
1096784MuhammetXoractive (IZhO19_xoractive)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "interactive.h" using namespace std; vector<int> guess(int n) { vector <int> ans(n,0); for(int i = 1; i <= n; i++){ int x; ask(i); cin >> x; a[i-1] = x; } return ans; }

Compilation message (stderr)

Xoractive.cpp: In function 'std::vector<int> guess(int)':
Xoractive.cpp:12:3: error: 'a' was not declared in this scope
   12 |   a[i-1] = x;
      |   ^