Borderou de evaluare (job #3215869)
Utilizator | Data | 15 martie 2024 13:54:05 | |
---|---|---|---|
Problema | Diametrul unui arbore | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'std::pair<int, int> Tree::bfs(int) const':
main.cpp:67:30: error: 'max_element' is not a member of 'std'; did you mean 'tuple_element'?
67 | const auto it = std::max_element(dist.begin(), dist.end());
| ^~~~~~~~~~~
| tuple_element
main.cpp:68:62: error: could not convert '{<expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::pair<int, int>'
68 | return { *it + 1, static_cast<int>(it - dist.begin())};
| ^
| |
| <brace-enclosed initializer list>
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !