Borderou de evaluare (job #2910085)
Utilizator | Data | 18 iunie 2022 12:57:49 | |
---|---|---|---|
Problema | Diametrul unui arbore | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:15:1: error: 'unsigned' specified with 'void'
15 | unsigned void BFS()
| ^~~~~~~~
main.cpp: In function 'void BFS()':
main.cpp:24:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int i=0;i<children[node].size();i++)
| ~^~~~~~~~~~~~~~~~~~~~~~
main.cpp: At global scope:
main.cpp:39:1: error: 'unsigned' specified with 'void'
39 | unsigned void DFS(int node, int cnt1)
| ^~~~~~~~
main.cpp: In function 'void DFS(int, int)':
main.cpp:45:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for(int i=0;i<children[node].size();i++)
| ~^~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !