Submission #334838

#TimeUsernameProblemLanguageResultExecution timeMemory
334838TricksterXoractive (IZhO19_xoractive)C++14
Compilation error
0 ms0 KiB
//Suleyman Atayew #include <algorithm> #include <iostream> #include <string.h> #include <stdio.h> #include <bitset> #include <vector> #include <queue> #include <cmath> #include <map> #include <set> #define N 200010 #define ff first #define ss second #define pb push_back #define ll long long #define mod 1000000007 #define pii pair <int, int> #define sz(a) (int)(a.size()) ll bigmod(ll a, ll b) { if(b==0)return 1; ll ret = bigmod(a, b/2); return ret * ret % mod * (b%2 ? a : 1) % mod; } using namespace std; vector <int> guess(int n) { vector <int> A; for(int i = 1; i <= n; i++) { A.pb(ask(i)); } return A; }

Compilation message (stderr)

Xoractive.cpp: In function 'std::vector<int> guess(int)':
Xoractive.cpp:31:14: error: 'ask' was not declared in this scope
   31 |         A.pb(ask(i));
      |              ^~~