| Problem | dijkstra |
|---|---|
| User | Mimikyu |
| Submission Time | 2025-10-26 14:34:35 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘int32_t main()’:
dijkstra.cpp:38:22: error: cannot convert ‘std::pair<long long int, long long int>’ to ‘long long int’ in initialization
38 | for(int i:adjl[node]){ //visit all the neighbours
| ^
dijkstra.cpp:4:11: error: request for member ‘second’ in ‘i’, which is of non-class type ‘long long int’
4 | #define s second
| ^~~~~~
dijkstra.cpp:39:20: note: in expansion of macro ‘s’
39 | if(dist[node]+i.s < dist[i.f]){
| ^
dijkstra.cpp:3:11: error: request for member ‘first’ in ‘i’, which is of non-class type ‘long long int’
3 | #define f first
| ^~~~~
dijkstra.cpp:39:31: note: in expansion of macro ‘f’
39 | if(dist[node]+i.s < dist[i.f]){
| ^
dijkstra.cpp:3:11: error: request for member ‘first’ in ‘i’, which is of non-class type ‘long long int’
3 | #de