Borderou de evaluare (job #2984760)

Utilizator tPilgrimSouca Vlad Cristian tPilgrim Data 24 februarie 2023 20:40:45
Problema Tastatură defectă Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:22:32: warning: NULL used in arithmetic [-Wpointer-arith] 22 | for(int i=0; s[i]!=NULL; i++) | ^~~~ main.cpp:34:23: warning: iteration 127 invokes undefined behavior [-Waggressive-loop-optimizations] 34 | if(c[i]!=0) | ~~~^ main.cpp:32:27: note: within this loop 32 | for(int i=0; i<=127; i++) | ~^~~~~ main.cpp:49:21: warning: iteration 127 invokes undefined behavior [-Waggressive-loop-optimizations] 49 | c[i]=0; | ~~~~^~ main.cpp:47:27: note: within this loop 47 | for(int i=0; i<=127; i++) | ~^~~~~ main.cpp:49:21: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [508, 511] is out of the bounds [0, 508] of object 'c' with type 'int [127]' [-Warray-bounds] 49 | c[i]=0; | ~~~~^~ main.cpp:13:14: note: 'c' declared here 13 | int k=0, c[127]={0}; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms184kbIncorect0
Punctaj total0

Ceva nu functioneaza?