job.cpp: In lambda function:
job.cpp:8:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return[&](){int i=0,t=0,ans=0;for(;++i<p.size();)ans+=(t+=d[i])*u[i];return ans;};
~~~^~~~~~~~~
job.cpp: In function 'long long int scheduling_cost(std::vector<int>, std::vector<int>, std::vector<int>)':
job.cpp:8:85: error: cannot convert 'scheduling_cost(std::vector<int>, std::vector<int>, std::vector<int>)::<lambda()>' to 'long long int' in return
return[&](){int i=0,t=0,ans=0;for(;++i<p.size();)ans+=(t+=d[i])*u[i];return ans;};
^