Borderou de evaluare (job #3173690)
Utilizator | Data | 23 noiembrie 2023 16:04:47 | |
---|---|---|---|
Problema | Smax | Status | done |
Runda | Arhiva ICPC | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int get_max(const std::__debug::vector<MaxDeque>&, MaxDeque, MaxDeque)':
main.cpp:41:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx1998::vector<MaxDeque, std::allocator<MaxDeque> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(int i = 0; i < dqs.size(); ++i) {
| ~~^~~~~~~~~~~~
main.cpp:42:46: error: passing 'const __gnu_cxx::__alloc_traits<std::allocator<MaxDeque>, MaxDeque>::value_type' {aka 'const MaxDeque'} as 'this' argument discards qualifiers [-fpermissive]
42 | ans = max(ans, dqs[i].get_max());
| ~~~~~~~~~~~~~~^~
main.cpp:33:13: note: in call to 'int MaxDeque::get_max()'
33 | int get_max() {
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !