Borderou de evaluare (job #3202313)
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 |
1 | 19ms | 1081kb | Incorect | 0 |
Punctaj total | 0 |