Borderou de evaluare (job #3304321)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 22 iulie 2025 15:16:40
Problema Bratara Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 70

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
13ms303kbOK10
20ms303kbOK10
30ms303kbOK10
41ms303kbOK10
51ms303kbOK10
60ms303kbOK10
70ms303kbIncorect0
82ms303kbOK10
95ms303kbIncorect0
100ms303kbIncorect0
Punctaj total70

Ceva nu functioneaza?