Borderou de evaluare (job #3294617)

Utilizator Soare_Claudiaclaudia Soare_Claudia Data 26 aprilie 2025 16:12:06
Problema Berarii2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:10:31: warning: 'n' is used uninitialized [-Wuninitialized] 10 | vector<vector<int>> adj(n + 1); | ~~^~~ main.cpp:9:9: note: 'n' declared here 9 | int n,m,p; | ^ main.cpp:20:14: warning: 'x' may be used uninitialized [-Wmaybe-uninitialized] 20 | adj[x].push_back(y); | ^ main.cpp:19:13: note: 'x' was declared here 19 | 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:20:25: /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:19:15: note: 'y' was declared here 19 | int x,y; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
24ms409kbKilled by Signal 110
30ms303kbIncorect0
45ms397kbKilled by Signal 110
58ms393kbKilled by Signal 110
60ms303kbIncorect0
70ms303kbIncorect0
80ms303kbIncorect0
93ms430kbKilled by Signal 110
108ms466kbKilled by Signal 110
118ms516kbKilled by Signal 110
128ms946kbKilled by Signal 110
1311ms4599kbKilled by Signal 110
148ms516kbKilled by Signal 110
1511ms4599kbKilled by Signal 110
163ms2543kbKilled by Signal 110
175ms4599kbKilled by Signal 110
185ms4599kbKilled by Signal 110
195ms4599kbKilled by Signal 110
206ms4599kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?