Borderou de evaluare (job #2819111)
Utilizator | Data | 17 decembrie 2021 21:15:29 | |
---|---|---|---|
Problema | Egal | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'map_t DFS(int, int, const adj_t&, vis_t&, const std::vector<int>&, std::vector<safe_t>&)':
main.cpp:73:30: error: 'max_element' is not a member of 'std'; did you mean 'tuple_element'?
73 | const auto it = std::max_element(fmap.begin(), fmap.end(),
| ^~~~~~~~~~~
| tuple_element
main.cpp:83:51: error: no matching function for call to 'std::vector<safe_t>::push_back(<brace-enclosed initializer list>)'
83 | res.push_back({src, it->first, it->second});
| ^
In file included from /usr/include/c++/10/vector:67,
from main.cpp:2:
/usr/include/c++/10/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = safe_t; _Alloc = std::allocator<safe_t>; std::vector<_Tp, _Alloc>::value_type = safe_t]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const safe_t&'}
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = safe_t; _Alloc = std::allocator<safe_t>; std::vector<_Tp, _Alloc>::value_type = safe_t]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<safe_t>::value_type&&' {aka 'safe_t&&'}
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp: In function 'int main()':
main.cpp:118:14: error: 'sort' is not a member of 'std'
118 | std::sort(res.begin(), res.end());
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !