job.cpp:8:17: error: invalid declarator before 'chs'
ll vector<ll> chs;ll u, d, id;
^~~
job.cpp: In function 'll scheduling_cost(std::vector<long long int>, std::vector<long long int>, std::vector<long long int>)':
job.cpp:18:20: error: 'p' was not declared in this scope
loop(i, 1, n) ts[p[i]].push_back(i);
^
job.cpp:26:10: error: expected ']' before '[' token
t[P[nek.id]].d+=t[nek.id].d;
^
job.cpp:26:8: warning: decomposition declaration only available with -std=c++1z or -std=gnu++1z
t[P[nek.id]].d+=t[nek.id].d;
^
job.cpp:26:8: error: decomposition declaration cannot be declared with type 't'
job.cpp:26:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
job.cpp:26:19: error: expected initializer before '.' token
t[P[nek.id]].d+=t[nek.id].d;
^
job.cpp:26:19: error: expected ',' or ';' before '.' token
job.cpp:27:13: error: expected primary-expression before '[' token
ans+=t[P[nek.id]].d * t[nek.id].u;
^
job.cpp:27:30: error: expected primary-expression before '[' token
ans+=t[P[nek.id]].d * t[nek.id].u;
^
job.cpp:28:10: error: expected ']' before '[' token
t[P[nek.id]].u+=t[nek.id].u;
^
job.cpp:28:8: warning: decomposition declaration only available with -std=c++1z or -std=gnu++1z
t[P[nek.id]].u+=t[nek.id].u;
^
job.cpp:28:8: error: decomposition declaration cannot be declared with type 't'
job.cpp:28:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
job.cpp:28:19: error: expected initializer before '.' token
t[P[nek.id]].u+=t[nek.id].u;
^
job.cpp:29:23: error: expected primary-expression before '[' token
for(auto&& j : t[nek.id].chs) P[j]=P[nek.id];
^
job.cpp:30:34: error: expected ']' before ')' token
if(nek.id!=n&&act[P[nek.id]) q.push(ts[P[nek.id]]);
^