Mai intai trebuie sa te autentifici.
Borderou de evaluare (job #3370261)
| Utilizator | Data | 24 octombrie 2026 19:59:21 | |
|---|---|---|---|
| Problema | Pamant | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int cv(int)':
main.cpp:14:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for(int cnt=0;cnt<cpv[a].size();cnt++)
| ~~~^~~~~~~~~~~~~~
main.cpp:16:17: error: 'nod' was not declared in this scope
16 | nod=cpv[a][cnt];
| ^~~
main.cpp:17:17: error: 'grad_nod' was not declared in this scope
17 | grad_nod=graf[nod].size();
| ^~~~~~~~
main.cpp:21:21: error: expected ';' before '}' token
21 | return maxim
| ^
| ;
22 | }
| ~
main.cpp: In function 'void func(int)':
main.cpp:25:12: error: no match for 'operator!' (operand type is 'std::vector<bool>')
25 | if(!vizitate[nod])
| ^~~~~~~~~~~~~~
main.cpp:25:12: note: candidate: 'operator!(bool)' (built-in)
main.cpp:25:12: note: no known conversion for argument 1 from 'std::vector<bool>' to 'bool'
main.cpp:26:31: error: no match for 'operator=' (operand types are 'std::vector<bool>' and 'bool')
26 | vizitate[nod]=true;
| ^~~~
In file included from /usr/include/c++/12.2.1/vector:65,
from /usr/include/c++/12.2.1/functional:62,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:71,
from main.cpp:1:
/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:28:37: error: 'begin' was not declared in this scope
28 | for(int nod_vecin : graf[nod])
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
