Borderou de evaluare (job #1649399)

Utilizator eu3neuomManghiuc Teodor-Florin eu3neuom Data 11 martie 2016 13:35:24
Problema Diametrul unui arbore Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:1: error: expected initializer before ‘int’ int D[NMax]; ^ user.cpp: In function ‘void BFS(const int&)’: user.cpp:19:12: error: ‘D’ was not declared in this scope memset(D, 0, sizeof(D)); ^ user.cpp:23:9: error: ‘last’ was not declared in this scope last = node; ^ user.cpp: In function ‘int main()’: user.cpp:42:9: error: ‘last’ was not declared in this scope BFS(last); ^ user.cpp:43:13: error: ‘D’ was not declared in this scope fout << D[last]; ^

Ceva nu functioneaza?