Problem mrt
User MagicHenry
Submission Time 2024-05-05 15:04:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mrt.cpp: In function ‘void dijkstra(int, int)’:
mrt.cpp:10:16: error: incompatible types in assignment of ‘const int’ to ‘int [205]’
10 | d[i] = INF;
| ^~~
mrt.cpp:12:16: error: incompatible types in assignment of ‘int’ to ‘int [205]’
12 | d[start] = 0;
| ^
mrt.cpp:18:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
18 | if (dst != d[x]) continue;
| ^
mrt.cpp:22:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
22 | if (d[nnode] !=-1 and d[nnode] <=ndist) continue;
| ^
mrt.cpp:22:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
22 | if (d[nnode] !=-1 and d[nnode] <=ndist) continue;
| ^~~~~
mrt.cpp:23:15: error: incompatible types