Borderou de evaluare (job #3244968)

Utilizator mihail_11Ionescu Mihail mihail_11 Data 26 septembrie 2024 21:57:09
Problema Pic Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:70:13: warning: left shift count >= width of type [-Wshift-count-overflow] 70 | dr=1<<63+1; | ~^~~~~~ main.cpp:70:17: warning: suggest parentheses around '+' inside '<<' [-Wparentheses] 70 | dr=1<<63+1; | ~~^~ main.cpp:37:49: warning: unused variable 'k' [-Wunused-variable] 37 | long long int P,i,curent,S=0,j,maxim=-1,poz,k=0,ans=0,pe_jos; | ^ In file included from /usr/include/c++/12.2.1/iostream:39, 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:84:25: /usr/include/c++/12.2.1/ostream:202:25: warning: 'pe_jos' may be used uninitialized [-Wmaybe-uninitialized] 202 | { return _M_insert(__n); } | ~~~~~~~~~^~~~~ main.cpp: In function 'int main()': main.cpp:37:59: note: 'pe_jos' was declared here 37 | long long int P,i,curent,S=0,j,maxim=-1,poz,k=0,ans=0,pe_jos; | ^~~~~~ 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:57:15: /usr/include/c++/12.2.1/ostream:202:25: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 202 | { return _M_insert(__n); } | ~~~~~~~~~^~~~~ main.cpp: In function 'int main()': main.cpp:37:45: note: 'poz' was declared here 37 | long long int P,i,curent,S=0,j,maxim=-1,poz,k=0,ans=0,pe_jos; | ^~~ main.cpp:45:39: warning: 'i' may be used uninitialized [-Wmaybe-uninitialized] 45 | for(j=i*(i-1)/2+1;j<=(i+1)*i/2;j++) | ~~~~~^~ main.cpp:37:21: note: 'i' was declared here 37 | long long int P,i,curent,S=0,j,maxim=-1,poz,k=0,ans=0,pe_jos; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK5
20ms339kbOK5
30ms303kbOK5
40ms303kbOK5
50ms303kbIncorect0
60ms303kbIncorect0
70ms303kbIncorect0
80ms303kbIncorect0
90ms303kbIncorect0
100ms303kbIncorect0
110ms303kbIncorect0
120ms303kbIncorect0
130ms303kbIncorect0
140ms303kbIncorect0
150ms303kbIncorect0
160ms303kbIncorect0
170ms303kbIncorect0
180ms303kbIncorect0
190ms303kbIncorect0
200ms303kbIncorect0
Punctaj total20

Ceva nu functioneaza?