Problem dijkstra
User Anonymous35V
Submission Time 2023-11-16 09:52:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:6:7: error: ‘sync_with_studio’ is not a member of ‘std::ios’ {aka ‘std::basic_ios<char>’}
6 | ios::sync_with_studio(0);cin.tie(0)
| ^~~~~~~~~~~~~~~~
dijkstra.cpp:6:37: error: expected ‘;’ before ‘long’
6 | ios::sync_with_studio(0);cin.tie(0)
| ^
| ;
dijkstra.cpp:8:5: error: expected ‘;’ before ‘v’
8 | cin v>>e;
| ^~
| ;
dijkstra.cpp:9:20: error: ‘e’ was not declared in this scope
9 | for (int i = 0; i<e; i++);{
| ^
dijkstra.cpp:11:6: error: expected ‘;’ before ‘x’
11 | cin x>>y>w;
| ^~
| ;
dijkstra.cpp:14:77: error: template argument 3 is invalid
14 | priority_queue<pair<int,int>, vector <pair<int,int>>,greater<pair<int,int>>pq;