Borderou de evaluare (job #3244966)

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

Raport evaluator

Compilare: main.cpp: In function 'int main()': 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
20ms323kbOK5
30ms303kbOK5
40ms303kbOK5
50ms303kbOK5
60ms303kbOK5
70ms303kbOK5
80ms303kbOK5
90ms303kbOK5
100ms303kbOK5
110ms303kbOK5
120ms303kbOK5
130ms303kbOK5
140ms303kbOK5
150ms303kbOK5
160ms303kbOK5
170ms303kbOK5
180ms303kbOK5
190ms303kbIncorect0
200ms303kbIncorect0
Punctaj total90

Ceva nu functioneaza?