Borderou de evaluare (job #3300235)
Utilizator | Data | 13 iunie 2025 23:19:23 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: ISO C++ forbids declaration of 'bfs' with no type [-fpermissive]
7 | bfs(int nr){int k;
| ^~~
main.cpp: In function 'int bfs(int)':
main.cpp:11:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for(int j=0;j<v[k].size();j++){
| ~^~~~~~~~~~~~
main.cpp:16:1: warning: no return statement in function returning non-void [-Wreturn-type]
16 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !