Submission #875914

#TimeUsernameProblemLanguageResultExecution timeMemory
875914AverageAmogusEnjoyerRoller Coaster Railroad (IOI16_railroad)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; template<class T> bool cmin(T &i, T j) { return i > j ? i=j,1:0; } template<class T> bool cmax(T &i, T j) { return i < j ? i=j,1:0; } ll plan_roller_coaster(int n, int s[],int t[]) { ll ans = 0; return 0; }

Compilation message (stderr)

railroad.cpp: In function 'll plan_roller_coaster(int, int*, int*)':
railroad.cpp:7:8: warning: unused variable 'ans' [-Wunused-variable]
    7 |     ll ans = 0;
      |        ^~~
/usr/bin/ld: /tmp/cc3rPCGq.o: in function `main':
grader.cpp:(.text.startup+0xf4): undefined reference to `plan_roller_coaster(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status