Borderou de evaluare (job #3360669)
| Utilizator | Data | 15 iulie 2026 14:01:02 | |
|---|---|---|---|
| Problema | Car | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void minCost()':
main.cpp:57:22: error: no matching function for call to 'std::deque<std::tuple<int, int, int> >::push_front(<brace-enclosed initializer list>)'
57 | dq.push_front({si, sj, i});
| ~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/deque:64,
from main.cpp:5:
/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, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; value_type = std::tuple<int, 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, int> >::value_type&' {aka 'const std::tuple<int, 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, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; value_type = std::tuple<int, 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, int> >::value_type&&' {aka 'std::tuple<int, int, int>&&'}
1516 | push_front(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp:62:14: error: 'std::tuple<int, int, int> <structured bindings>' has incomplete type
62 | auto [i, j, dir] = dq.front();
| ^~~~~~~~~~~
main.cpp:79:30: error: no matching function for call to 'std::deque<std::tuple<int, int, int> >::push_front(<brace-enclosed initializer list>)'
79 | dq.push_front({i+di[dir], j+dj[dir], dir});
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; value_type = std::tuple<int, 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, int> >::value_type&' {aka 'const std::tuple<int, 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, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; value_type = std::tuple<int, 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, int> >::value_type&&' {aka 'std::tuple<int, int, int>&&'}
1516 | push_front(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp:87:25: error: no matching function for call to 'std::deque<std::tuple<int, int, int> >::push_back(<brace-enclosed initializer list>)'
87 | dq.push_back({i, j, (dir+1)%8});
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/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, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; value_type = std::tuple<int, 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, int> >::value_type&' {aka 'const std::tuple<int, 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, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; value_type = std::tuple<int, 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, int> >::value_type&&' {aka 'std::tuple<int, 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 !
