Borderou de evaluare (job #2660344)

Utilizator Fiby24Chitimia Dragos Fabian Nicusor Fiby24 Data 18 octombrie 2020 23:18:59
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 BFS()': main.cpp:23:9: error: 'Nod' was not declared in this scope Nod = Coada.front(); ^~~ main.cpp:28:11: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(Distanta[Vecin] == -1) ^~ main.cpp:30:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' Distanta[Vecin] = Distanta[Nod] + 1; ^~~~~~~~ main.cpp:20:9: warning: unused variable 'NOD' [-Wunused-variable] int NOD , Vecin; ^~~ Non zero exit status: 1

Ceva nu functioneaza?