job.cpp: In function 'long long int scheduling_cost(std::vector<int>, std::vector<int>, std::vector<int>)':
job.cpp:41:56: error: no matching function for call to 'std::vector<Job>::emplace_back(<brace-enclosed initializer list>)'
for (int i = 0; i < n; ++i) v.eb({p[i], u[i], d[i]});
^
In file included from /usr/include/c++/7/vector:69:0,
from job.h:5,
from job.cpp:1:
/usr/include/c++/7/bits/vector.tcc:95:7: note: candidate: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = Job; _Alloc = std::allocator<Job>; std::vector<_Tp, _Alloc>::reference = Job&]
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:95:7: note: candidate expects 0 arguments, 1 provided