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

Compile Error

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