Borderou de evaluare (job #3157760)

Utilizator georgeilie4542Ilie George georgeilie4542 Data 16 octombrie 2023 20:01:05
Problema BFS - Parcurgere in latime Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:33:12: warning: right operand of comma operator has no effect [-Wunused-value] 33 | f>>N,M,S; | ^ main.cpp:33:13: warning: right operand of comma operator has no effect [-Wunused-value] 33 | f>>N,M,S; | ^ main.cpp:38:8: warning: 'S' may be used uninitialized [-Wmaybe-uninitialized] 38 | BFS(S); | ~~~^~~ main.cpp:32:13: note: 'S' was declared here 32 | int N,M,S; | ^ main.cpp:35:13: warning: 'x' may be used uninitialized [-Wmaybe-uninitialized] 35 | int x,y; | ^ 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 = int; _Args = {const int&}]', inlined from 'static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = int; _Args = {const int&}; _Tp = int]' at /usr/include/c++/12.2.1/bits/alloc_traits.h:518:21, inlined from 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:1281:30, inlined from 'int main()' at main.cpp:36:23: /usr/include/c++/12.2.1/bits/stl_construct.h:97:14: warning: 'y' may be used uninitialized [-Wmaybe-uninitialized] 97 | { return ::new((void*)__location) _Tp(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:35:15: note: 'y' was declared here 35 | int x,y; | ^ main.cpp:34:18: warning: 'M' may be used uninitialized [-Wmaybe-uninitialized] 34 | for(int i=1;i<=M;i++){ | ~^~~ main.cpp:32:11: note: 'M' was declared here 32 | int N,M,S; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms303kbIncorect0
24ms303kbIncorect0
34ms303kbIncorect0
44ms303kbIncorect0
54ms303kbIncorect0
64ms303kbIncorect0
76ms557kbIncorect0
87ms557kbIncorect0
97ms557kbIncorect0
107ms557kbIncorect0
Punctaj total0

Ceva nu functioneaza?