Submission #679137

#TimeUsernameProblemLanguageResultExecution timeMemory
679137mseebacherGondola (IOI14_gondola)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; #define MAXI (int)1e5 #define pb(x) push_back(x) bool valid(int n,int in[]){ map<int,bool> m; m.insert({in[0],1}); for(int i = 1;i<n;i++){ if(in[i-1]+1 == in[i] || in[i] > n) continue; if(in[i-1] == n && in[i] == 1) continue; if(!m[in[i]]){ m.insert({in[i],1}); continue; } return false; } return true; }

Compilation message (stderr)

/usr/bin/ld: /tmp/cciaUqdv.o: in function `main':
grader.cpp:(.text.startup+0xb6): undefined reference to `valid'
/usr/bin/ld: grader.cpp:(.text.startup+0x108): undefined reference to `countReplacement'
/usr/bin/ld: grader.cpp:(.text.startup+0x132): undefined reference to `replacement'
collect2: error: ld returned 1 exit status