Submission #148419

# Submission time Handle Problem Language Result Execution time Memory
148419 2019-09-01T04:20:55 Z rkm0959(#3623, jun6873, babo) List of Unique Integers (FXCUP4_unique) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#define L long long

using namespace std;

int UniqueCount(int L,int R);

int n;

vector<int> PickUnique(int N){
	vector<int>ret(N,1);
	n=N;
	int i;
	int now=1;
	for(i=1;i<N;i++)
	{
		int temp=UniqueCount(0,i);
		if(temp==now) ret[i]=0; 
		now=temp;
	}
	now=1;
	for(i=N-1;i>0;i--)
	{
		int temp=UniqueCount(0,i);
		if(temp==now) ret[i]=0; 
		now=temp;
	}
	return ret;
}

Compilation message

/tmp/ccZlRBc0.o: In function `PickUnique(int)':
unique.cpp:(.text+0xa6): undefined reference to `UniqueCount(long long, int)'
unique.cpp:(.text+0xe5): undefined reference to `UniqueCount(long long, int)'
collect2: error: ld returned 1 exit status