Submission #182397

# Submission time Handle Problem Language Result Execution time Memory
182397 2020-01-09T16:37:45 Z tourist Xoractive (IZhO19_xoractive) C++14
Compilation error
0 ms 0 KB
#include "interactive.h"
#include <iostream>
#include "grader.cpp"
using namespace std;

vector<int> guess(int n) {
	vector < int > ans;
	for (int i = 1; i <= n; i++) {
		ans.push_back(ask(i));
	}
	return ans;
}

Compilation message

/tmp/cc7hLrEG.o: In function `query()':
grader.cpp:(.text+0x20): multiple definition of `query()'
/tmp/ccJyxl7d.o:Xoractive.cpp:(.text+0x20): first defined here
/tmp/cc7hLrEG.o: In function `ask(int)':
grader.cpp:(.text+0x50): multiple definition of `ask(int)'
/tmp/ccJyxl7d.o:Xoractive.cpp:(.text+0x50): first defined here
/tmp/cc7hLrEG.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccJyxl7d.o:Xoractive.cpp:(.text.startup+0x0): first defined here
/tmp/cc7hLrEG.o: In function `get_pairwise_xor(std::vector<int, std::allocator<int> >)':
grader.cpp:(.text+0x2f0): multiple definition of `get_pairwise_xor(std::vector<int, std::allocator<int> >)'
/tmp/ccJyxl7d.o:Xoractive.cpp:(.text+0x390): first defined here
collect2: error: ld returned 1 exit status