Problem dijkstra
User cri
Submission Time 2023-04-02 03:50:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp:13:5: error: expected initializer before ‘cin’
13 | cin >> V >> E;
| ^~~
dijkstra.cpp:15:5: error: expected unqualified-id before ‘for’
15 | for(int i = 0; i < E; i++){
| ^~~
dijkstra.cpp:15:20: error: ‘i’ does not name a type
15 | for(int i = 0; i < E; i++){
| ^
dijkstra.cpp:15:27: error: ‘i’ does not name a type
15 | for(int i = 0; i < E; i++){
| ^
dijkstra.cpp:21:11: error: expected constructor, destructor, or type conversion before ‘(’ token
21 | memset(dist, -1, sizeof(dist));
| ^
dijkstra.cpp:22:11: error: expected constructor, destructor, or type conversion before ‘(’ token
22 | memset(p, -1, sizeof(p));
| ^
dijkstra.cpp:23:5: error: ‘dist’ does not name a type
23 | dist[1] = 0;
| ^~~~
dijkstra.cpp:24:5: error: ‘pq’ do