Submission #991921

# Submission time Handle Problem Language Result Execution time Memory
991921 2024-06-03T12:01:48 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(std::vector<int> p, std::vector<int> u, std::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/cc25hGYy.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