Borderou de evaluare (job #3143981)

Utilizator ezluciPirtac Eduard ezluci Data 3 august 2023 17:13:53
Problema Frac Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'long long int pinex(long long int)': main.cpp:29:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 29 | for (int j = 0; j < divi.size(); ++j) | ~~^~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:62:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] 62 | ll mj = st+dr >> 1; | ~~^~~ 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:6: 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:72:12: /usr/include/c++/12.2.1/ostream:202:25: warning: 'sol' may be used uninitialized [-Wmaybe-uninitialized] 202 | { return _M_insert(__n); } | ~~~~~~~~~^~~~~ main.cpp: In function 'int main()': main.cpp:59:34: note: 'sol' was declared here 59 | ll st = n, dr = LLONG_MAX>>1, sol; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
30ms303kbOK10
40ms303kbOK10
50ms303kbOK10
60ms303kbOK10
70ms303kbOK10
80ms303kbOK10
90ms303kbOK10
102ms303kbOK10
Punctaj total100

Ceva nu functioneaza?