Submission #374533

#TimeUsernameProblemLanguageResultExecution timeMemory
374533vishesh312Gondola (IOI14_gondola)C++17
Compilation error
0 ms0 KiB
#include "bits/stdc++.h" using namespace std; #include "gondola.h" int replacement(); int countReplacement(); int valid(int n, int arr[]) { map<int, bool> mp; vector<int> v(arr, arr+n); auto it = min_element(v.begin(), v.end()); rotate(v.begin(), it, v.end()); for (int i = 0; i < n; ++i) { if (mp[v[i]]) return 0; mp[v[i]] = true; if (v[i] <= n and i != v[i] - v[0]) return 0; } return 1; }

Compilation message (stderr)

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