Borderou de evaluare (job #3323811)

Utilizator StefanL2005Stefan Leustean StefanL2005 Data 19 noiembrie 2025 22:23:05
Problema Apm2 Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'std::vector<Muchie> Prim(int, const ListaVecini&)': main.cpp:141:39: warning: comparison of integer expressions of different signedness: 'std::vector<Muchie>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 141 | while (!pq.empty() && rasp.size() < n - 1) { | ~~~~~~~~~~~~^~~~~~~ In file included from /usr/include/c++/12.2.1/vector:64, from main.cpp:3: In member function 'constexpr void std::vector<_Tp, _Alloc>::assign(size_type, const value_type&) [with _Tp = Node; _Alloc = std::allocator<Node>]', inlined from 'int main()' at main.cpp:191:16: /usr/include/c++/12.2.1/bits/stl_vector.h:804:23: warning: '<anonymous>' may be used uninitialized [-Wmaybe-uninitialized] 804 | { _M_fill_assign(__n, __val); } | ~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/12.2.1/vector:70: /usr/include/c++/12.2.1/bits/vector.tcc: In function 'int main()': /usr/include/c++/12.2.1/bits/vector.tcc:264:5: note: by argument 3 of type 'const std::vector<Node>::value_type&' {aka 'const Node&'} to 'constexpr void std::vector<_Tp, _Alloc>::_M_fill_assign(std::size_t, const value_type&) [with _Tp = Node; _Alloc = std::allocator<Node>]' declared here 264 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ main.cpp:191:25: note: '<anonymous>' declared here 191 | tata.assign(n, Node()); | ^ main.cpp:202:33: warning: 'q' may be used uninitialized [-Wmaybe-uninitialized] 202 | for (int querry = 0; querry < q; querry++) { | ~~~~~~~^~~ main.cpp:168:15: note: 'q' was declared here 168 | int n, m, q; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
16ms397kbKilled by Signal 1100
24ms397kbKilled by Signal 110
34ms430kbKilled by Signal 110
47ms552kbKilled by Signal 110
59ms552kbKilled by Signal 110
69ms548kbKilled by Signal 110
74ms557kbKilled by Signal 110
819ms3575kbIncorect0
924ms5140kbIncorect0
1024ms5136kbIncorect0
Punctaj total0

Ceva nu functioneaza?