job.cpp: In function 'long long int scheduling_cost(std::vector<int>, std::vector<int>, std::vector<int>)':
job.cpp:8:12: error: expected primary-expression before 'auto'
return(auto f=[&](){int i=0,t=0,ans=0;for(;++i<p.size();)ans+=(t+=d[i])*u[i];return ans;},f());
^~~~
job.cpp:8:12: error: expected ')' before 'auto'
job.cpp:8:95: error: 'f' was not declared in this scope
return(auto f=[&](){int i=0,t=0,ans=0;for(;++i<p.size();)ans+=(t+=d[i])*u[i];return ans;},f());
^
job.cpp:8:98: error: expected ';' before ')' token
return(auto f=[&](){int i=0,t=0,ans=0;for(;++i<p.size();)ans+=(t+=d[i])*u[i];return ans;},f());
^
job.cpp:8:98: error: expected primary-expression before ')' token