Problem routers
User jeongwonho64
Submission Time 2023-05-18 18:49:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

routers.cpp:5:20: error: ‘vec’ was not declared in this scope
5 | priority_queue<pi, vec<pi>, greater<pi>> v;
| ^~~
routers.cpp:5:26: error: template argument 2 is invalid
5 | priority_queue<pi, vec<pi>, greater<pi>> v;
| ^
routers.cpp:5:26: error: template argument 3 is invalid
routers.cpp:5:27: error: expected unqualified-id before ‘,’ token
5 | priority_queue<pi, vec<pi>, greater<pi>> v;
| ^
routers.cpp:5:39: error: invalid declarator before ‘>’ token
5 | priority_queue<pi, vec<pi>, greater<pi>> v;
| ^~
routers.cpp: In function ‘int main()’:
routers.cpp:10:3: error: ‘v’ was not declared in this scope
10 | v.push(pi(a-b, a+b));
| ^
routers.cpp:18:24: error: ‘v’ was not declared in this scope
18 |