Submission #114556

#TimeUsernameProblemLanguageResultExecution timeMemory
114556wilwxkShortcut (IOI16_shortcut)C++11
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN=2e5+5; pair<int, int> v[MAXN]; int n; ll plan_roller_coaster(vector<int> s, vector<int> t) { n = (int) s.size(); for(int i=1; i<=n; i++) v[i]={t[i-1], s[i-1]}; sort(v+1, v+1+n); bool ok=1; int cur=1; for(int i=1; i<=n; i++) { if(cur>v[i].second) ok=0; cur=v[i].first; } if(ok) return 0; return 1; }

Compilation message (stderr)

/tmp/ccP0tRAF.o: In function `main':
grader.cpp:(.text.startup+0x10d): undefined reference to `find_shortcut(int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, int)'
collect2: error: ld returned 1 exit status