0_0_30505651_8280.cpp: In function 'int main()':
0_0_30505651_8280.cpp:35:17: error: 'matrix' was not declared in this scope
matrix[i][j] = INF;
^
0_0_30505651_8280.cpp:49:25: error: 'matrix' was not declared in this scope
if (c < matrix[a][b]) {
^
0_0_30505651_8280.cpp: In function 'void dijkstra(int)':
0_0_30505651_8280.cpp:73:44: error: 'matrix' was not declared in this scope
if (!marks[i] && new_p != i && matrix[new_p][i] != INF) {
^
0_0_30505651_8280.cpp: In function 'void dfs(int, int)':
0_0_30505651_8280.cpp:99:38: error: 'matrix' was not declared in this scope
if (result[cnt] == -1 || matrix[num][result[cnt]] > matrix[num][previous[num][i]]) {
^
0_0_30505651_8280.cpp: In function 'void print(int)':
0_0_30505651_8280.cpp:113:26: error: 'matrix' was not declared in this scope
printf("%d", matrix[result[i]][result[i - 1]]);
^
0_0_30505651_8280.cpp:116:27: error: 'matrix' was not declared in this scope
printf(" %d", matrix[result[i]][result[i - 1]]);
^
|