제출 #991920

#제출 시각아이디문제언어결과실행 시간메모리
991920elesisJob Scheduling (IOI19_job)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include <job.h> using namespace std; #define int long long int scheduling_cost(vector<int> p, vector<int> u, vector<int> d) { int t = 0 ; int n = p.size(); int ans = 0; for(int i=0;i<n;i++) { ans += t*u[i]; t+=d[i]; } return ans; }

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

/usr/bin/ld: /tmp/cczJty3x.o: in function `main':
grader.cpp:(.text.startup+0x2b1): undefined reference to `scheduling_cost(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status