Submission #148419

#TimeUsernameProblemLanguageResultExecution timeMemory
148419rkm0959 (#200)List of Unique Integers (FXCUP4_unique)C++17
Compilation error
0 ms0 KiB
#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 (stderr)

/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