Borderou de evaluare (job #2977553)
Utilizator | Data | 11 februarie 2023 20:10:36 | |
---|---|---|---|
Problema | Tree 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:62:18: error: redeclaration of 'bool ok'
62 | bool ok = true;
| ^~
main.cpp:42:18: note: 'bool ok' previously declared here
42 | bool ok = true;
| ^~
main.cpp:65:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | for (int l = 0; l < g[k].size(); l++)
| ~~^~~~~~~~~~~~~
main.cpp:66:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | for (int p = l + 1; p < g[k].size(); p++)
| ~~^~~~~~~~~~~~~
main.cpp:69:34: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
69 | if (ok && res.size() == n - 1)
| ~~~~~~~~~~~^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !