Pagini recente » Borderou de evaluare (job #632782) | Borderou de evaluare (job #1526948) | Borderou de evaluare (job #2660477) | Borderou de evaluare (job #2555978) | Borderou de evaluare (job #3244968)
Borderou de evaluare (job #3244968)
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 |
1 | 0ms | 303kb | OK | 5 |
2 | 0ms | 339kb | OK | 5 |
3 | 0ms | 303kb | OK | 5 |
4 | 0ms | 303kb | OK | 5 |
5 | 0ms | 303kb | Incorect | 0 |
6 | 0ms | 303kb | Incorect | 0 |
7 | 0ms | 303kb | Incorect | 0 |
8 | 0ms | 303kb | Incorect | 0 |
9 | 0ms | 303kb | Incorect | 0 |
10 | 0ms | 303kb | Incorect | 0 |
11 | 0ms | 303kb | Incorect | 0 |
12 | 0ms | 303kb | Incorect | 0 |
13 | 0ms | 303kb | Incorect | 0 |
14 | 0ms | 303kb | Incorect | 0 |
15 | 0ms | 303kb | Incorect | 0 |
16 | 0ms | 303kb | Incorect | 0 |
17 | 0ms | 303kb | Incorect | 0 |
18 | 0ms | 303kb | Incorect | 0 |
19 | 0ms | 303kb | Incorect | 0 |
20 | 0ms | 303kb | Incorect | 0 |
Punctaj total | 20 |