0_0_37339817_22869.cpp:16:16: error: 'Pos' was not declared in this scope
priority_queue<Pos> pq;
^
0_0_37339817_22869.cpp:16:19: error: template argument 1 is invalid
priority_queue<Pos> pq;
^
0_0_37339817_22869.cpp:16:19: error: template argument 2 is invalid
0_0_37339817_22869.cpp:16:19: error: template argument 3 is invalid
0_0_37339817_22869.cpp:16:23: error: invalid type in declaration before ';' token
priority_queue<Pos> pq;
^
0_0_37339817_22869.cpp: In function 'int getAns()':
0_0_37339817_22869.cpp:30:13: error: request for member 'empty' in 'pq', which is of non-class type 'int'
while (!pq.empty()) pq.pop();
^
0_0_37339817_22869.cpp:30:25: error: request for member 'pop' in 'pq', which is of non-class type 'int'
while (!pq.empty()) pq.pop();
^
0_0_37339817_22869.cpp:31:5: error: request for member 'push' in 'pq', which is of non-class type 'int'
pq.push(Pos(sx, sy, 0));
^
0_0_37339817_22869.cpp:33:13: error: request for member 'empty' in 'pq', which is of non-class type 'int'
while (!pq.empty()) {
^
0_0_37339817_22869.cpp:34:15: error: request for member 'top' in 'pq', which is of non-class type 'int'
Pos ps = pq.top();
^
0_0_37339817_22869.cpp:35:6: error: request for member 'pop' in 'pq', which is of non-class type 'int'
pq.pop();
^
0_0_37339817_22869.cpp:54:7: error: request for member 'push' in 'pq', which is of non-class type 'int'
pq.push(Pos(nx, ny, nv));
^
|