Borderou de evaluare (job #3380714)

Utilizator RosaSofianRosa Sofian RosaSofian Data 2 decembrie 2026 09:36:41
Problema Alpin Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: In file included from /usr/include/c++/12.2.1/algorithm:61, from main.cpp:2: In function 'constexpr void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = ura*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(ura, ura)>]', inlined from 'constexpr void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = ura*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(ura, ura)>]' at /usr/include/c++/12.2.1/bits/stl_algo.h:1940:31, inlined from 'constexpr void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = ura*; _Compare = bool (*)(ura, ura)]' at /usr/include/c++/12.2.1/bits/stl_algo.h:4853:18, inlined from 'void fill(int, int)' at main.cpp:49:9: /usr/include/c++/12.2.1/bits/stl_algo.h:1849:32: warning: array subscript 16 is outside array bounds of 'ura [5]' [-Warray-bounds] 1849 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void fill(int, int)': main.cpp:36:9: note: at offset 192 into object 'cine' of size 60 36 | ura cine[5]; | ^~~~ main.cpp: In function 'int main()': main.cpp:101:12: warning: 'py' may be used uninitialized [-Wmaybe-uninitialized] 101 | pny= maxi[px][py].y; | ~~~^~~~~~~~~~~~~~~~ main.cpp:82:22: note: 'py' was declared here 82 | int maxx= 0, px, py; | ^~ main.cpp:101:12: warning: 'px' may be used uninitialized [-Wmaybe-uninitialized] 101 | pny= maxi[px][py].y; | ~~~^~~~~~~~~~~~~~~~ main.cpp:82:18: note: 'px' was declared here 82 | int maxx= 0, px, py; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
113ms454kbKilled by Signal 110
213ms405kbKilled by Signal 110
313ms405kbKilled by Signal 110
413ms450kbKilled by Signal 110
513ms425kbKilled by Signal 110
613ms413kbKilled by Signal 110
713ms446kbKilled by Signal 110
813ms405kbKilled by Signal 110
913ms421kbKilled by Signal 110
1013ms405kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?