Borderou de evaluare (job #3216485)
Utilizator | Data | 17 martie 2024 13:37:29 | |
---|---|---|---|
Problema | Padure | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:27:14: error: no matching function for call to 'std::deque<std::tuple<int, int> >::push_back(<brace-enclosed initializer list>)'
27 | q.push_back({pl, cl});
| ~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/12.2.1/deque:64,
from main.cpp:3:
/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::tuple<int, int>; _Alloc = std::allocator<std::tuple<int, int> >; value_type = std::tuple<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 '<brace-enclosed initializer list>' to 'const std::deque<std::tuple<int, int> >::value_type&' {aka 'const std::tuple<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::tuple<int, int>; _Alloc = std::allocator<std::tuple<int, int> >; value_type = std::tuple<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 '<brace-enclosed initializer list>' to 'std::deque<std::tuple<int, int> >::value_type&&' {aka 'std::tuple<int, int>&&'}
1553 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp:29:10: error: 'std::tuple<int, int> <structured bindings>' has incomplete type
29 | auto [curr_i, curr_j] = q.front();
| ^~~~~~~~~~~~~~~~
main.cpp:47:23: error: no matching function for call to 'std::deque<std::tuple<int, int> >::push_front(<brace-enclosed initializer list>)'
47 | q.push_front({next_i, next_j});
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1501:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_front(const value_type&) [with _Tp = std::tuple<int, int>; _Alloc = std::allocator<std::tuple<int, int> >; value_type = std::tuple<int, int>]'
1501 | push_front(const value_type& __x)
| ^~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1501:36: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::deque<std::tuple<int, int> >::value_type&' {aka 'const std::tuple<int, int>&'}
1501 | push_front(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1516:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_front(value_type&&) [with _Tp = std::tuple<int, int>; _Alloc = std::allocator<std::tuple<int, int> >; value_type = std::tuple<int, int>]'
1516 | push_front(value_type&& __x)
| ^~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1516:31: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::deque<std::tuple<int, int> >::value_type&&' {aka 'std::tuple<int, int>&&'}
1516 | push_front(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp:50:22: error: no matching function for call to 'std::deque<std::tuple<int, int> >::push_back(<brace-enclosed initializer list>)'
50 | q.push_back({next_i, next_j});
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/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::tuple<int, int>; _Alloc = std::allocator<std::tuple<int, int> >; value_type = std::tuple<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 '<brace-enclosed initializer list>' to 'const std::deque<std::tuple<int, int> >::value_type&' {aka 'const std::tuple<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::tuple<int, int>; _Alloc = std::allocator<std::tuple<int, int> >; value_type = std::tuple<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 '<brace-enclosed initializer list>' to 'std::deque<std::tuple<int, int> >::value_type&&' {aka 'std::tuple<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 !