제출 #845998

#제출 시각아이디문제언어결과실행 시간메모리
845998Trisanu_Das가장 긴 여행 (IOI23_longesttrip)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
#include "longesttrip.h"

int n; vector<int> ans;

vector<int> longesttrip(int N, int D){
  int n = N; ans.clear();
  for(int i = 0; i < n; i++) ans.push_back(i); 
  return ans;
}

컴파일 시 표준 에러 (stderr) 메시지

/usr/bin/ld: /tmp/ccnsrGm8.o: in function `main':
stub.cpp:(.text.startup+0x95): undefined reference to `longest_trip(int, int)'
collect2: error: ld returned 1 exit status