Borderou de evaluare (job #3202313)

Utilizator Teodor94Teodor Plop Teodor94 Data 11 februarie 2024 13:11:26
Problema Puncte3 Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'long long int cautbin()': main.cpp:42:10: warning: 'ans' may be used uninitialized [-Wmaybe-uninitialized] 42 | return ans; | ^~~ main.cpp:31:15: note: 'ans' was declared here 31 | int l=0,r=c,ans; | ^~~ In file included from /usr/include/c++/12.2.1/istream:39, from /usr/include/c++/12.2.1/fstream:38, from main.cpp:2: 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 'void solve()' at main.cpp:52:17: /usr/include/c++/12.2.1/ostream:202:25: warning: 'ans' may be used uninitialized [-Wmaybe-uninitialized] 202 | { return _M_insert(__n); } | ~~~~~~~~~^~~~~ main.cpp: In function 'void solve()': main.cpp:31:15: note: 'ans' was declared here 31 | int l=0,r=c,ans; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
119ms1081kbIncorect0
Punctaj total0

Ceva nu functioneaza?