Borderou de evaluare (job #2978705)

Utilizator AlbuDariusAlbu Darius AlbuDarius Data 14 februarie 2023 08:10:31
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void ford(int)': main.cpp:4:5: error: 'c' was not declared in this scope 4 | c[ps] = nod; | ^ main.cpp:6:9: error: 'viz' was not declared in this scope 6 | viz[c[ps]] = 0; | ^~~ main.cpp:7:13: error: 'start' was not declared in this scope 7 | x = start[c[ps]]; | ^~~~~ main.cpp:9:17: error: 'cost' was not declared in this scope 9 | if (cost[c[ps]] + a[2][x] < cost[a[0][x]]) { | ^~~~ main.cpp:9:31: error: 'a' was not declared in this scope 9 | if (cost[c[ps]] + a[2][x] < cost[a[0][x]]) { | ^ main.cpp:16:17: error: 'a' was not declared in this scope 16 | x = a[1][x]; | ^ Non zero exit status: 1

Ceva nu functioneaza?