Submission #339561

#TimeUsernameProblemLanguageResultExecution timeMemory
339561fixikmilaXoractive (IZhO19_xoractive)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include<interactive.h> #include"grader.cpp" using namespace std; #define MOD 1000000007 typedef long long ll; typedef pair<ll,ll>pll; typedef long double ld; ll bin_pow(ll a,ll b){ if(b==0)return 1; if(b%2==0){ ll t=bin_pow(a,b/2); return t*t%MOD; } else return a*bin_pow(a,b-1)%MOD; } vector<int> guess(int n){ vector<int>a(4); a[0]=ask(1); a[1]=ask(2); a[2]=ask(3); a[3]=ask(4); return a; }

Compilation message (stderr)

/tmp/ccoGqs6l.o: In function `query()':
grader.cpp:(.text+0x30): multiple definition of `query()'
/tmp/ccbzkm3p.o:Xoractive.cpp:(.text+0x30): first defined here
/tmp/ccoGqs6l.o: In function `ask(int)':
grader.cpp:(.text+0x60): multiple definition of `ask(int)'
/tmp/ccbzkm3p.o:Xoractive.cpp:(.text+0x60): first defined here
/tmp/ccoGqs6l.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccbzkm3p.o:Xoractive.cpp:(.text.startup+0x0): first defined here
/tmp/ccoGqs6l.o: In function `get_pairwise_xor(std::vector<int, std::allocator<int> >)':
grader.cpp:(.text+0xc0): multiple definition of `get_pairwise_xor(std::vector<int, std::allocator<int> >)'
/tmp/ccbzkm3p.o:Xoractive.cpp:(.text+0x210): first defined here
collect2: error: ld returned 1 exit status