제출 #339559

#제출 시각아이디문제언어결과실행 시간메모리
339559fixikmilaXoractive (IZhO19_xoractive)C++14
컴파일 에러
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;
}

컴파일 시 표준 에러 (stderr) 메시지

/tmp/ccpEt7yF.o: In function `query()':
grader.cpp:(.text+0x30): multiple definition of `query()'
/tmp/ccyDgQ0b.o:Xoractive.cpp:(.text+0x30): first defined here
/tmp/ccpEt7yF.o: In function `ask(int)':
grader.cpp:(.text+0x60): multiple definition of `ask(int)'
/tmp/ccyDgQ0b.o:Xoractive.cpp:(.text+0x60): first defined here
/tmp/ccpEt7yF.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccyDgQ0b.o:Xoractive.cpp:(.text.startup+0x0): first defined here
/tmp/ccpEt7yF.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/ccyDgQ0b.o:Xoractive.cpp:(.text+0x210): first defined here
collect2: error: ld returned 1 exit status