Borderou de evaluare (job #3242103)

Utilizator andreea0146Nicula Andreea andreea0146 Data 8 septembrie 2024 21:52:52
Problema Gard2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 60

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:60:44: warning: iteration 51 invokes undefined behavior [-Waggressive-loop-optimizations] 60 | for(int i=0; i<=51; i++) nou[i]=0; | ~~~~~~^~ main.cpp:60:27: note: within this loop 60 | for(int i=0; i<=51; i++) nou[i]=0; | ~^~~~ main.cpp:60:44: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [204, 207] is out of the bounds [0, 204] of object 'nou' with type 'int [51]' [-Warray-bounds] 60 | for(int i=0; i<=51; i++) nou[i]=0; | ~~~~~~^~ main.cpp:10:15: note: 'nou' declared here 10 | int v[51][51],nou[51]; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK5
20ms303kbOK5
30ms303kbOK5
40ms303kbOK5
50ms303kbOK5
60ms303kbOK5
70ms303kbOK5
80ms303kbOK5
90ms303kbOK5
100ms303kbOK5
110ms303kbOK5
120ms303kbOK5
130ms303kbIncorect0
140ms303kbIncorect0
150ms303kbIncorect0
160ms303kbIncorect0
170ms303kbIncorect0
180ms303kbIncorect0
190ms303kbIncorect0
200ms303kbIncorect0
Punctaj total60

Ceva nu functioneaza?