Submission #991920

# Submission time Handle Problem Language Result Execution time Memory
991920 2024-06-03T12:00:07 Z elesis Job Scheduling (IOI19_job) C++14
Compilation error
0 ms 0 KB
#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;
}

Compilation message

/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