Submission #582601

#TimeUsernameProblemLanguageResultExecution timeMemory
582601amunduzbaevTriangles (CEOI18_tri)C++17
Compilation error
0 ms0 KiB
#include "trilib.h"
//~ #ifndef EVAL
#include "trilib.c"
//~ #endif
#include "bits/stdc++.h"
using namespace std;
 
#define ar array
typedef int64_t ll;

vector<int> Sort(int l, int r){
	if(l == r) return {l};
	
	int m = (l + r) >> 1;
	auto lx = Sort(l, m), rx = Sort(m + 1, r);
	vector<int> res = lx;
	res.insert(res.end(), rx.begin(), rx.end());
	
	return res;
}

signed main(){
	//~ ios::sync_with_stdio(0); cin.tie(0);
	
	int n = get_n();
	//~ vector<int> p = Sort(2, n);
	give_answer(1);
}

Compilation message (stderr)

tri.cpp: In function 'int main()':
tri.cpp:25:6: warning: unused variable 'n' [-Wunused-variable]
   25 |  int n = get_n();
      |      ^
/usr/bin/ld: /tmp/ccGXwoBO.o: in function `get_n':
tri.cpp:(.text+0x120): multiple definition of `get_n'; /tmp/ccEFmsAL.o:trilib.c:(.text+0x120): first defined here
/usr/bin/ld: /tmp/ccGXwoBO.o: in function `is_clockwise':
tri.cpp:(.text+0x190): multiple definition of `is_clockwise'; /tmp/ccEFmsAL.o:trilib.c:(.text+0x190): first defined here
/usr/bin/ld: /tmp/ccGXwoBO.o: in function `give_answer':
tri.cpp:(.text+0x2f0): multiple definition of `give_answer'; /tmp/ccEFmsAL.o:trilib.c:(.text+0x2f0): first defined here
collect2: error: ld returned 1 exit status