Problem cyberland_apio23
User Hijackedsoul
Submission Time 2024-02-12 17:58:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cyberland_apio23.cpp: In function ‘void dijkstra(int, int, std::vector<int>)’:
cyberland_apio23.cpp:32:3: error: ‘pos’ was not declared in this scope; did you mean ‘pow’?
32 | pos=false;
| ^~~
| pow
cyberland_apio23.cpp:34:15: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
34 | return dist[e];
| ^
cyberland_apio23.cpp: In function ‘double solve(int, int, int, int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)’:
cyberland_apio23.cpp:43:17: error: void value not ignored as it ought to be
43 | return dijkstra(0, H, arr);
| ~~~~~~~~^~~~~~~~~~~