Problem dijkstra
User fanyinuo2021
Submission Time 2023-08-19 21:36:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp:29:1: error: ‘g’ does not name a type
29 | g[N][N]; // graph
| ^
dijkstra.cpp: In function ‘void dijkstra()’:
dijkstra.cpp:78:50: error: ‘g’ was not declared in this scope
78 | dist[j] = min(dist[j], dist[t] + g[t][j]);
| ^
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:94:12: error: ‘g’ was not declared in this scope
94 | memset(g, 0x3f, sizeof(g));
| ^