제출 #875914

#제출 시각아이디문제언어결과실행 시간메모리
875914AverageAmogusEnjoyerRoller Coaster Railroad (IOI16_railroad)C++17
컴파일 에러
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; }

컴파일 시 표준 에러 (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