Problem dijkstra
User Anonymous35V
Submission Time 2023-11-16 10:08:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:7:7: error: ‘sync_with_studio’ is not a member of ‘std::ios’ {aka ‘std::basic_ios<char>’}
7 | ios::sync_with_studio(0);cin.tie(0);
| ^~~~~~~~~~~~~~~~
dijkstra.cpp:9:5: error: expected ‘;’ before ‘v’
9 | cin v>>e;
| ^~
| ;
dijkstra.cpp:12:6: error: expected ‘;’ before ‘x’
12 | cin x>>y>w;
| ^~
| ;
dijkstra.cpp:14:25: error: ‘c’ was not declared in this scope
14 | adjlist[y].push_back({c,w});
| ^
dijkstra.cpp:14:29: error: no matching function for call to ‘std::vector<std::pair<long long int, long long int> >::push_back(<brace-enclosed initializer list>)’
14 | adjlist[y].push_back({c,w});
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,