Borderou de evaluare (job #3305165)

Utilizator THATS_HOW_LIFE_WORKSTHATSHOWLIFEWORKS THATS_HOW_LIFE_WORKS Data 30 iulie 2025 14:44:27
Problema Sir3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 40

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:47:58: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] 47 | fx[i][j] = max(fx[i][j - 1], fx[i + LS(j - 1)][j - 1]); | ~~^~~ main.cpp:7:23: note: in definition of macro 'LS' 7 | #define LS(x) (1LL << x) | ^ main.cpp:48:58: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] 48 | fn[i][j] = min(fn[i][j - 1], fn[i + LS(j - 1)][j - 1]); | ~~^~~ main.cpp:7:23: note: in definition of macro 'LS' 7 | #define LS(x) (1LL << x) | ^ In file included from /usr/include/c++/12.2.1/istream:39, from /usr/include/c++/12.2.1/sstream:38, from /usr/include/c++/12.2.1/complex:45, from /usr/include/c++/12.2.1/ccomplex:39, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54, from main.cpp:1: In member function 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>]', inlined from 'int main()' at main.cpp:65:43: /usr/include/c++/12.2.1/ostream:202:25: warning: 'savR' may be used uninitialized [-Wmaybe-uninitialized] 202 | { return _M_insert(__n); } | ~~~~~~~~~^~~~~ main.cpp: In function 'int main()': main.cpp:52:24: note: 'savR' was declared here 52 | ll sav_ = 0, savL, savR; | ^~~~ In member function 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>]', inlined from 'int main()' at main.cpp:65:28: /usr/include/c++/12.2.1/ostream:202:25: warning: 'savL' may be used uninitialized [-Wmaybe-uninitialized] 202 | { return _M_insert(__n); } | ~~~~~~~~~^~~~~ main.cpp: In function 'int main()': main.cpp:52:18: note: 'savL' was declared here 52 | ll sav_ = 0, savL, savR; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms819kbOK10
25ms3964kbOK10
39ms6336kbOK10
424ms14516kbOK10
5132ms20975kbMemory limit exceeded0
6144ms21041kbMemory limit exceeded0
7154ms20959kbMemory limit exceeded0
8174ms21024kbMemory limit exceeded0
9183ms20881kbMemory limit exceeded0
10192ms21028kbMemory limit exceeded0
Punctaj total40

Ceva nu functioneaza?