Borderou de evaluare (job #3228946)
Utilizator | Data | 12 mai 2024 15:39:20 | |
---|---|---|---|
Problema | Diametrul unui arbore | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int)':
main.cpp:14:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for(int i = 0; i < v[nod].size(); i++)
| ~~^~~~~~~~~~~~~~~
main.cpp: In function 'void dfs2(int)':
main.cpp:31:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for(int i = 0; i<v[nod].size(); i++)
| ~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:63:5: error: 'dout' was not declared in this scope; did you mean 'fout'?
63 | dout << dmax;
| ^~~~
| fout
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !