Borderou de evaluare (job #3231999)
Utilizator | Data | 28 mai 2024 17:11:26 | |
---|---|---|---|
Problema | Plantatie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'std::vector<int> answerQueries(const std::vector<std::vector<int> >&, const std::vector<std::tuple<int, int, int> >&, int, int)':
main.cpp:30:9: error: 'tie' was not declared in this scope
30 | tie(x, y, k) = interogari[idx];
| ^~~
main.cpp:5:1: note: 'std::tie' is defined in header '<tuple>'; did you forget to '#include <tuple>'?
4 | #include <fstream>
+++ |+#include <tuple>
5 |
main.cpp: In function 'int main()':
main.cpp:78:25: error: 'make_tuple' was not declared in this scope
78 | interogari[i] = make_tuple(x - 1, y - 1, k);
| ^~~~~~~~~~
main.cpp:78:25: note: 'std::make_tuple' is defined in header '<tuple>'; did you forget to '#include <tuple>'?
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: In instantiation of 'constexpr std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](size_type) const [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; const_reference = const std::tuple<int, int, int>&; size_type = long unsigned int]':
main.cpp:30:38: required from here
/usr/include/c++/12.2.1/bits/stl_vector.h:1143:41: error: invalid use of incomplete type 'class std::tuple<int, int, int>'
1143 | return *(this->_M_impl._M_start + __n);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/12.2.1/bits/stl_algobase.h:64,
from /usr/include/c++/12.2.1/string:50,
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_pair.h:90:11: note: declaration of 'class std::tuple<int, int, int>'
90 | class tuple;
| ^~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'constexpr std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; reference = std::tuple<int, int, int>&; size_type = long unsigned int]':
main.cpp:78:21: required from here
/usr/include/c++/12.2.1/bits/stl_vector.h:1124:41: error: invalid use of incomplete type 'class std::tuple<int, int, int>'
1124 | return *(this->_M_impl._M_start + __n);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/usr/include/c++/12.2.1/bits/stl_pair.h:90:11: note: declaration of 'class std::tuple<int, int, int>'
90 | class 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:552:47: required from 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; size_type = long unsigned int; allocator_type = std::allocator<std::tuple<int, int, int> >]'
main.cpp:74:46: 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);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_pair.h:90:11: note: declaration of 'class std::tuple<int, int, int>'
90 | class tuple;
| ^~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'static constexpr std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::_S_max_size(const _Tp_alloc_type&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; size_type = long unsigned int; _Tp_alloc_type = std::vector<std::tuple<int, int, int> >::_Tp_alloc_type]':
/usr/include/c++/12.2.1/bits/stl_vector.h:1904:23: required from 'static constexpr std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::_S_check_init_len(size_type, const allocator_type&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; size_type = long unsigned int; allocator_type = std::allocator<std::tuple<int, int, int> >]'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !