Pagini recente » Borderou de evaluare (job #2735727) | Borderou de evaluare (job #1292150) | Borderou de evaluare (job #1967943) | Borderou de evaluare (job #1649389) | Borderou de evaluare (job #2984760)
Borderou de evaluare (job #2984760)
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 |
1 | 0ms | 184kb | Incorect | 0 |
Punctaj total | 0 |