Borderou de evaluare (job #3296150)

Utilizator Andrei1209Andrei Mircea Andrei1209 Data 11 mai 2025 20:15:15
Problema Cuburi3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:40:19: warning: unused variable 'k' [-Wunused-variable] 40 | int rasp = 0, k = 0, poz; | ^ 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/istream:38, from /usr/include/c++/12.2.1/fstream:38, 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:47:22: /usr/include/c++/12.2.1/bits/stl_construct.h:97:14: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 97 | { return ::new((void*)__location) _Tp(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:40:26: note: 'poz' was declared here 40 | int rasp = 0, k = 0, poz; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
30ms303kbOK10
40ms303kbOK10
50ms303kbOK10
61ms303kbOK10
71ms303kbOK10
81ms303kbIncorect0
92ms303kbOK10
1023ms491kbIncorect0
Punctaj total80

Ceva nu functioneaza?