Borderou de evaluare (job #3370073)
| Utilizator | Data | 23 octombrie 2026 22:24:30 | |
|---|---|---|---|
| Problema | Sate | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int f(int, int)':
main.cpp:19:30: error: no match for 'operator=' (operand types are 'std::vector<bool>' and 'bool')
19 | vizitat[nod]=true;
| ^~~~
In file included from /usr/include/c++/12.2.1/vector:65,
from main.cpp:3:
/usr/include/c++/12.2.1/bits/stl_bvector.h:843:7: note: candidate: 'constexpr std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(const std::vector<bool, _Alloc>&) [with _Alloc = std::allocator<bool>]'
843 | operator=(const vector& __x)
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_bvector.h:843:31: note: no known conversion for argument 1 from 'bool' to 'const std::vector<bool>&'
843 | operator=(const vector& __x)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_bvector.h:875:7: note: candidate: 'constexpr std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(std::vector<bool, _Alloc>&&) [with _Alloc = std::allocator<bool>]'
875 | operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move())
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_bvector.h:875:26: note: no known conversion for argument 1 from 'bool' to 'std::vector<bool>&&'
875 | operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move())
| ~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_bvector.h:901:7: note: candidate: 'constexpr std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(std::initializer_list<bool>) [with _Alloc = std::allocator<bool>]'
901 | operator=(initializer_list<bool> __l)
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_bvector.h:901:40: note: no known conversion for argument 1 from 'bool' to 'std::initializer_list<bool>'
901 | operator=(initializer_list<bool> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~
main.cpp:20:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::tuple<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for(int k=0;k<z[nod].size();k++)
| ~^~~~~~~~~~~~~~
main.cpp:22:36: error: no match for 'operator[]' (operand types are 'std::vector<bool> [300]' and '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int> >, std::tuple<int, int> >::value_type' {aka 'std::tuple<int, int>'})
22 | if(!vizitat[z[nod][k]])
| ^
main.cpp:24:33: error: 'u' was not declared in this scope
24 | u=z[nod][k][1];
| ^
main.cpp:24:44: error: no match for 'operator[]' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int> >, std::tuple<int, int> >::value_type' {aka 'std::tuple<int, int>'} and 'int')
24 | u=z[nod][k][1];
| ^
main.cpp: In function 'int main()':
main.cpp:39:31: error: no matching function for call to 'std::vector<std::tuple<int, int> >::push_back(<brace-enclosed initializer list>)'
39 | z[i].push_back({j,d});
| ~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/12.2.1/vector:64:
/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>; _Alloc = std::allocator<std::tuple<int, int> >; value_type = std::tuple<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> >::value_type&' {aka 'const std::tuple<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>; _Alloc = std::allocator<std::tuple<int, int> >; value_type = std::tuple<int, int>]'
1293 | 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 !
