Borderou de evaluare (job #845256)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Control Node 2 | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 14 dec. 2025 11:02:34 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:51:24: error: no matching function for call to 'std::vector<std::vector<short unsigned int> >::insert(std::vector<short unsigned int>&)'
51 | d[m].insert(g);
| ~~~~~~~~~~~^~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/vector:66,
from main.cpp:3:
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_vector.h:1497:9: note: candidate: 'template<class _InputIterator, class> std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, _InputIterator, _InputIterator) [with <template-parameter-2-2> = _InputIterator; _Tp = std::vector<short unsigned int>; _Alloc = std::allocator<std::vector<short unsigned int> >]'
1497 | insert(const_iterator __position, _InputIterator __first,
| ^~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_vector.h:1497:9: note: candidate expects 3 arguments, 1 provided
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/vector:72:
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/vector.tcc:133:5: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, const value_type&) [with _Tp = std::vector<short unsigned int>; _Alloc = std::allocator<std::vector<short unsigned int> >; iterator = std::vector<std::vector<short unsigned int> >::iterator; const_iterator = std::vector<std::vector<short unsigned int> >::const_iterator; value_type = std::vector<short unsigned int>]'
133 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/vector.tcc:133:5: note: candidate expects 2 arguments, 1 provided
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_vector.h:1408:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = std::vector<short unsigned int>; _Alloc = std::allocator<std::vector<short unsigned int> >; iterator = std::vector<std::vector<short unsigned int> >::iterator; const_iterator = std::vector<std::vector<short unsigned int> >::const_iterator; value_type = std::vector<short unsigned int>]'
1408 | insert(const_iterator __position, value_type&& __x)
| ^~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_vector.h:1408:7: note: candidate expects 2 arguments, 1 provided
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_vector.h:1426:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, std::initializer_list<_Tp>) [with _Tp = std::vector<short unsigned int>; _Alloc = std::allocator<std::vector<short unsigned int> >; iterator = std::vector<std::vector<short unsigned int> >::iterator; const_iterator = std::vector<std::vector<short unsigned int> >::const_iterator]'
1426 | insert(const_iterator __position, initializer_list<value_type> __l)
| ^~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_vector.h:1426:7: note: candidate expects 2 arguments, 1 provided
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_vector.h:1452:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, size_type, const value_type&) [with _Tp = std::vector<short unsigned int>; _Alloc = std::allocator<std::vector<short unsigned int> >; iterator = std::vector<std::vector<short unsigned int> >::iterator; const_iterator = std::vector<std::vector<short unsigned int> >::const_iterator; size_type = long unsigned int; value_type = std::vector<short unsigned int>]'
1452 | insert(const_iterator __position, size_type __n, const value_type& __x)
| ^~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_vector.h:1452:7: note: candidate expects 3 arguments, 1 provided