0_0_13855429_26144.cpp:19:22: error: invalid declarator before 'qu1'
priority_queue<node> qu1,qu2;
^
0_0_13855429_26144.cpp: In function 'long long int Solve_1A()':
0_0_13855429_26144.cpp:42:17: error: 'qu1' was not declared in this scope
while (!qu1.empty()) qu1.pop();
^
0_0_13855429_26144.cpp:43:17: error: 'qu2' was not declared in this scope
while (!qu2.empty()) qu2.pop();
^
0_0_13855429_26144.cpp:44:9: error: 'now' was not declared in this scope
now.t = now.val = 0;
^
0_0_13855429_26144.cpp:45:9: error: 'qu1' was not declared in this scope
qu1.push(now);
^
0_0_13855429_26144.cpp:51:15: error: 'qu2' was not declared in this scope
qu1.pop(),qu2.push(now);
^
0_0_13855429_26144.cpp:52:5: error: 'std::next' does not have class type
next.t = now.t + arr[k].t;
^
0_0_13855429_26144.cpp:52:22: error: 'arr' was not declared in this scope
next.t = now.t + arr[k].t;
^
0_0_13855429_26144.cpp:53:17: error: 'std::next' does not have class type
next.val = now.val + arr[k].val;
^
0_0_13855429_26144.cpp:55:21: error: 'std::next' does not have class type
if (next.val >= m) {
^
0_0_13855429_26144.cpp:56:25: error: 'std::next' does not have class type
if (next.t < minn) minn = next.t;
^
0_0_13855429_26144.cpp:56:47: error: 'std::next' does not have class type
if (next.t < minn) minn = next.t;
^
0_0_13855429_26144.cpp:59:9: error: 'std::next' does not have class type
if (next.t >= minn) continue;
^
0_0_13855429_26144.cpp:64:21: error: 'qu2' was not declared in this scope
while (!qu2.empty()) {
^
0_0_13855429_26144.cpp: In function 'int main()':
0_0_13855429_26144.cpp:86:29: error: 'arr' was not declared in this scope
scanf("%d%d%d",&arr[i].t,&arr[i].val,&k);
^
|