Borderou de evaluare (job #3172580)
Utilizator | Data | 20 noiembrie 2023 21:35:50 | |
---|---|---|---|
Problema | Oracol | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void apmK(std::vector<std::tuple<int, int, int> >&, std::vector<int>&, int&)':
main.cpp:39:9: error: 'tie' was not declared in this scope
39 | tie(cost1,u,v)=muchie;
| ^~~
main.cpp:5:1: note: 'std::tie' is defined in header '<tuple>'; did you forget to '#include <tuple>'?
4 | #include <fstream>
+++ |+#include <tuple>
5 | using namespace std;
In file included from /usr/include/c++/12.2.1/string:47,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/stl_iterator.h: In instantiation of 'constexpr __gnu_cxx::__normal_iterator<_Iterator, _Container>& __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator++() [with _Iterator = std::tuple<int, int, int>*; _Container = std::vector<std::tuple<int, int, int> >]':
main.cpp:36:28: required from here
/usr/include/c++/12.2.1/bits/stl_iterator.h:1107:11: error: cannot increment a pointer to incomplete type 'std::tuple<int, int, int>'
1107 | ++_M_current;
| ^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:66:27: error: no matching function for call to 'std::vector<std::tuple<int, int, int> >::push_back(<brace-enclosed initializer list>)'
66 | graf.push_back({cost,i,j});
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/vector:64,
from main.cpp:2:
/usr/include/c++/12.2.1/bits/stl_vector.h:1276:7: note: candidate: 'constexpr void std::vector<_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>]'
1276 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1276:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::vector<std::tuple<int, int, int> >::value_type&' {aka 'const std::tuple<int, int, int>&'}
1276 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1293:7: note: candidate: 'constexpr void std::vector<_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>]'
1293 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1293:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::tuple<int, int, int> >::value_type&&' {aka 'std::tuple<int, int, int>&&'}
1293 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp:71:14: error: 'std::tuple<int, int, int> muchie' has incomplete type
71 | for(auto muchie:graf)
| ^~~~~~
main.cpp:74:9: error: 'tie' was not declared in this scope
74 | tie(cost,u,v)=muchie;
| ^~~
main.cpp:74:9: note: 'std::tie' is defined in header '<tuple>'; did you forget to '#include <tuple>'?
/usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'constexpr std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >]':
/usr/include/c++/12.2.1/bits/stl_vector.h:526:7: required from here
/usr/include/c++/12.2.1/bits/stl_vector.h:367:49: error: invalid use of incomplete type 'class std::tuple<int, int, int>'
367 | _M_impl._M_end_of_storage - _M_impl._M_start);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !