Borderou de evaluare (job #3371142)
| Utilizator | Data | 28 octombrie 2026 19:07:54 | |
|---|---|---|---|
| Problema | BFS - Parcurgere in latime | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:9:29: error: array must be initialized with a brace-enclosed initializer
9 | int viz[nmax], nr_min[nmax]=-1;
| ^~
main.cpp:12:1: error: 'nr_min' does not name a type
12 | nr_min[nod_cautat]=0;
| ^~~~~~
main.cpp: In function 'void bfs(int, int, int)':
main.cpp:37:31: error: incompatible types in assignment of 'const int' to 'int [100001]'
37 | nr_min=min(nr_min[x], nr_min[nod_vecin]+1);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
