답안 #875914

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
875914 2023-11-20T18:07:10 Z AverageAmogusEnjoyer Roller Coaster Railroad (IOI16_railroad) C++17
컴파일 오류
0 ms 0 KB
#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

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