Submission #493026

#TimeUsernameProblemLanguageResultExecution timeMemory
493026irmuunXoractive (IZhO19_xoractive)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define ll long long
#define ff first
#define ss second
#define PI 3.14159265359
int m,t,p,h,a,b,c,d,e,f,i,j,k,mod=1000000007,mod1=998244353,MAX=1e18;
string s,u;
vector<int> guess(int n) {
	vector<int>ans;
	for(i=1;i<=n;i++){
		ans.push_back(ask(i));
	}
	return ans;
}

Compilation message (stderr)

Xoractive.cpp:8:65: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
    8 | int m,t,p,h,a,b,c,d,e,f,i,j,k,mod=1000000007,mod1=998244353,MAX=1e18;
      |                                                                 ^~~~
Xoractive.cpp: In function 'std::vector<int> guess(int)':
Xoractive.cpp:13:17: error: 'ask' was not declared in this scope
   13 |   ans.push_back(ask(i));
      |                 ^~~