Borderou de evaluare (job #3214063)
Utilizator | Data | 13 martie 2024 19:01:53 | |
---|---|---|---|
Problema | Deque | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:25:17: error: no matching function for call to 'std::deque<std::pair<int, int> >::push_back(int&)'
25 | dq.push_back(i);
| ~~~~~~~~~~~~^~~
In file included from /usr/include/c++/12.2.1/deque:64,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/stl_deque.h:1538:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; value_type = std::pair<int, int>]'
1538 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1538:35: note: no known conversion for argument 1 from 'int' to 'const std::deque<std::pair<int, int> >::value_type&' {aka 'const std::pair<int, int>&'}
1538 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1553:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; value_type = std::pair<int, int>]'
1553 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1553:30: note: no known conversion for argument 1 from 'int' to 'std::deque<std::pair<int, int> >::value_type&&' {aka 'std::pair<int, int>&&'}
1553 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !