Borderou de evaluare (job #3211215)
Utilizator | Data | 8 martie 2024 18:58:23 | |
---|---|---|---|
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:32:20: error: no matching function for call to 'std::deque<z>::push_back(int&)'
32 | D.push_back(x);
| ~~~~~~~~~~~^~~
In file included from /usr/include/c++/12.2.1/deque:64,
from main.cpp:2:
/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 = z; _Alloc = std::allocator<z>; value_type = z]'
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<z>::value_type&' {aka 'const z&'}
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 = z; _Alloc = std::allocator<z>; value_type = z]'
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<z>::value_type&&' {aka 'z&&'}
1553 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp:33:20: error: no matching function for call to 'std::deque<z>::push_back(int&)'
33 | D.push_back(i).poz;
| ~~~~~~~~~~~^~~
/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 = z; _Alloc = std::allocator<z>; value_type = z]'
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<z>::value_type&' {aka 'const z&'}
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 = z; _Alloc = std::allocator<z>; value_type = z]'
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<z>::value_type&&' {aka 'z&&'}
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 !