Pagini recente » Borderou de evaluare (job #3036514) | Borderou de evaluare (job #1730829) | Borderou de evaluare (job #2170329) | Borderou de evaluare (job #2952831) | Borderou de evaluare (job #3226846)
Borderou de evaluare (job #3226846)
Raport evaluator
Compilare:
main.cpp: In function 'void getComponents(int, int, int)':
main.cpp:53:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | for(int i = 0; i < v[id].size(); i ++){
| ~~^~~~~~~~~~~~~~
main.cpp: In function 'long long int componentDfs(int)':
main.cpp:86:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
86 | for(int i = 0; i < components.size(); i ++)
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp:94:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | for(int i = 0; i < nodeComponents[id].size(); i ++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:105:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
105 | for(int j = 0; j < components[comp].size(); j ++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:176:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
176 | for(int j = 0; j < nodeComponents[i].size(); j ++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:182:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
182 | for(int i = 0; i < components.size(); i ++){
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp:184:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
184 | for(int j = 0; j < components[i].size(); j ++){
| ~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:197:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
197 | for(int i = 0; i < components.size(); i ++){
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp:198:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
198 | for(int j = 0; j < components[i].size(); j ++)
| ~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void popComponent(int, int)':
main.cpp:41:19: warning: 'lastEdge.EdgeFull::cost' may be used uninitialized [-Wmaybe-uninitialized]
41 | punte[compid] = lastEdge.cost;
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp:27:12: note: 'lastEdge.EdgeFull::cost' was declared here
27 | EdgeFull lastEdge;
| ^~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/char_traits.h:46,
from /usr/include/c++/12.2.1/ios:40,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:1:
In function 'constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = Edge; _Args = {Edge}]',
inlined from 'static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = Edge; _Args = {Edge}; _Tp = Edge]' at /usr/include/c++/12.2.1/bits/alloc_traits.h:518:21,
inlined from 'constexpr std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {Edge}; _Tp = Edge; _Alloc = std::allocator<Edge>]' at /usr/include/c++/12.2.1/bits/vector.tcc:117:30,
inlined from 'constexpr void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = Edge; _Alloc = std::allocator<Edge>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:1294:21,
inlined from 'int main()' at main.cpp:155:19:
/usr/include/c++/12.2.1/bits/stl_construct.h:97:73: warning: 'c' may be used uninitialized [-Wmaybe-uninitialized]
97 | { return ::new((void*)__location) _Tp(std::forward<_Args>(__args)...); }
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1ms | 303kb | Componente biconexe: componenta gresita | 4 |
2 | 1ms | 303kb | Corect | 10 |
3 | 1ms | 303kb | Componente biconexe: componenta gresita | 4 |
4 | 1ms | 303kb | Componente biconexe: componenta gresita | 4 |
5 | 1ms | 557kb | Componente biconexe: componenta gresita | 4 |
6 | 2ms | 1081kb | Componente biconexe: componenta gresita | 4 |
7 | 4ms | 1867kb | Componente biconexe: componenta gresita | 4 |
8 | 59ms | 23429kb | Componente biconexe: numar gresit | 0 |
9 | 24ms | 12619kb | Componente biconexe: componenta gresita | 4 |
10 | 29ms | 16723kb | Componente biconexe: componenta gresita | 4 |
Punctaj total | 42 |