Submission #136040

#TimeUsernameProblemLanguageResultExecution timeMemory
136040arthurconmyGondola (IOI14_gondola)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #ifndef ARTHUR_LOCAL #include "gondola.h" #endif using namespace std; bool used[250001]; int valid(int n, int S[]) { pair<int,int> minn = {int(1e9),int(1e9)}; for(int i=0; i<n; i++) { if(used[S[i]]) return 0; used[S[i]]=1; minn = min(minn, make_pair(S[i],i)); } int cur = minn.first; if(cur>n) return 1; for(int j=minn.second+1; j<n; j++) { if(S[j]<cur) return 0; if(S[j]<=n) S[j]=cur; } for(int j=0; j<minn.second; j++) { if(S[j]<cur) return 0; if(S[j]<=n) S[j]=cur; } return 1; }

Compilation message (stderr)

/tmp/ccH3EwPs.o: In function `main':
grader.cpp:(.text.startup+0xc3): undefined reference to `countReplacement'
grader.cpp:(.text.startup+0x106): undefined reference to `replacement'
collect2: error: ld returned 1 exit status