Pagini recente » Borderou de evaluare (job #521169) | Borderou de evaluare (job #3004314) | Borderou de evaluare (job #1258436) | Cod sursa (job #213751) | Borderou de evaluare (job #3304321)
Borderou de evaluare (job #3304321)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:20:20: warning: array subscript -401 is below array bounds of 'int [100]' [-Warray-bounds]
20 | if(!a[v])
| ~~~^
main.cpp:8:9: note: while referencing 'a'
8 | int a[100]={0},c,k=1,l=0,n,p=0,q=0,r=0;
| ^
main.cpp:21:20: warning: array subscript -401 is below array bounds of 'int [100]' [-Warray-bounds]
21 | a[v]=i;
| ~~~^
main.cpp:8:9: note: while referencing 'a'
8 | int a[100]={0},c,k=1,l=0,n,p=0,q=0,r=0;
| ^
main.cpp:15:43: warning: array subscript -401 is below array bounds of 'int [100]' [-Warray-bounds]
15 | l+=k>1,k=1,memset(a,0,400),a[v]=i;
| ~~~^
main.cpp:8:9: note: while referencing 'a'
8 | int a[100]={0},c,k=1,l=0,n,p=0,q=0,r=0;
| ^
main.cpp:13:38: warning: '((__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type*)((char*)&t + offsetof(std::__cxx11::string, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::<unnamed>)))[1]' may be used uninitialized [-Wmaybe-uninitialized]
13 | int m=s.size(),v=(t[0]-48)*10+t[1]-48;
main.cpp:12:16: note: 't' declared here
12 | string t;
| ^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 3ms | 303kb | OK | 10 |
| 2 | 0ms | 303kb | OK | 10 |
| 3 | 0ms | 303kb | OK | 10 |
| 4 | 1ms | 303kb | OK | 10 |
| 5 | 1ms | 303kb | OK | 10 |
| 6 | 0ms | 303kb | OK | 10 |
| 7 | 0ms | 303kb | Incorect | 0 |
| 8 | 2ms | 303kb | OK | 10 |
| 9 | 5ms | 303kb | Incorect | 0 |
| 10 | 0ms | 303kb | Incorect | 0 |
| Punctaj total | 70 |