Borderou de evaluare (job #2514056)
Utilizator | Data | 24 decembrie 2019 14:13:33 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:16: error: 'MaxN' was not declared in this scope
vector <int> V[MaxN];
^~~~
main.cpp:14:13: error: 'MaxN' was not declared in this scope
int vizitat[MaxN];
^~~~
main.cpp: In function 'int main()':
main.cpp:27:9: error: 'V' was not declared in this scope
V[x].push_back(y);
^
main.cpp:31:9: error: 'vizitat' was not declared in this scope
vizitat[i] = -1;
^~~~~~~
main.cpp:37:17: error: 'vizitat' was not declared in this scope
fout << vizitat[i] << ' ';
^~~~~~~
main.cpp: In function 'void BFS(int)':
main.cpp:43:5: error: 'vizitat' was not declared in this scope
vizitat[nod] = 0;
^~~~~~~
main.cpp:49:38: error: 'V' was not declared in this scope
for (unsigned int i = 0; i < V[curent].size(); ++i)
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !