Borderou de evaluare (job #2595256)

Utilizator ionut_cristian.tacuTacu Ionut Cristian ionut_cristian.tacu Data 7 aprilie 2020 14:04:11
Problema BFS - Parcurgere in latime Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void printGraph(std::vector<int>*, int)': main.cpp:20:31: error: 'v' was not declared in this scope for (auto x : list_gr[v]) { ^ main.cpp: In function 'void bfs_graph(std::vector<int>*, int, int, int*, int*)': main.cpp:47:25: error: 'x' was not declared in this scope distance[x] = distance[parent] + 1; ^ main.cpp: In function 'int main()': main.cpp:61:5: error: 'fisin' was not declared in this scope fisin>> vertices >> edges >> S; ^~~~~ main.cpp:62:25: error: 'N' was not declared in this scope vector<int> list_gr[N+1]; ^ main.cpp:67:17: error: 'list_gr' was not declared in this scope addEdge(list_gr, sur, des); ^~~~~~~ main.cpp:70:15: error: 'list_gr' was not declared in this scope bfs_graph(list_gr, N, S, visited, d); ^~~~~~~ main.cpp:70:30: error: 'visited' was not declared in this scope bfs_graph(list_gr, N, S, visited, d); ^~~~~~~ main.cpp:70:39: error: 'd' was not declared in this scope bfs_graph(list_gr, N, S, visited, d); ^ main.cpp:72:9: error: 'fisout' was not declared in this scope fisout << distance[i] << ' '; ^~~~~~ main.cpp:72:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript fisout << distance[i] << ' '; ^ main.cpp:78:1: error: expected '}' at end of input } ^ Non zero exit status: 1

Ceva nu functioneaza?