Borderou de evaluare (job #3191108)

Utilizator triceTanase Alex trice Data 8 ianuarie 2024 20:06:09
Problema Lista lui Andrei Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 35

Raport evaluator

Compilare: main.cpp: In function 'void nextLine(int, int)': main.cpp:24:25: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations] 24 | nr[1][i]=nr[2][i]; | ~~~~~~~^ main.cpp:22:19: note: within this loop 22 | for(int i=1; i<=26; i++) | ~^~~~ main.cpp:18:25: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations] 18 | if(comb[i][j]==false) nr[2][i]+=nr[1][j]; | ~~~~~~~~~^ main.cpp:16:23: note: within this loop 16 | for(int j=1; j<=26; j++) | ~^~~~ main.cpp: In function 'int main()': main.cpp:45:38: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations] 45 | for(int i=1; i<=26; i++) nr[1][i]=1; | ~~~~~~~~^~ main.cpp:45:19: note: within this loop 45 | for(int i=1; i<=26; i++) nr[1][i]=1; | ~^~~~ main.cpp:50:40: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations] 50 | for(int i=1; i<=26; i++) s+=nr[1][i]; | ~~~~~~~^ main.cpp:50:19: note: within this loop 50 | for(int i=1; i<=26; i++) s+=nr[1][i]; | ~^~~~ main.cpp: In function 'void nextLine(int, int)': main.cpp:24:17: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' forming offset [312, 315] is out of the bounds [0, 312] of object 'nr' with type 'int [3][26]' [-Warray-bounds] 24 | nr[1][i]=nr[2][i]; | ~~~~~~~~^~~~~~~~~ main.cpp:8:5: note: 'nr' declared here 8 | int nr[3][26]; | ^~ main.cpp:25:17: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [312, 315] is out of the bounds [0, 312] of object 'nr' with type 'int [3][26]' [-Warray-bounds] 25 | nr[2][i]=0; | ~~~~~~~~^~ main.cpp:8:5: note: 'nr' declared here 8 | int nr[3][26]; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK5
20ms303kbOK5
30ms303kbOK5
40ms303kbOK5
50ms303kbOK5
60ms303kbOK5
70ms303kbIncorect0
80ms303kbIncorect0
90ms303kbIncorect0
100ms303kbIncorect0
110ms303kbIncorect0
120ms303kbIncorect0
130ms303kbIncorect0
140ms303kbIncorect0
150ms303kbIncorect0
160ms303kbIncorect0
170ms303kbIncorect0
180ms303kbIncorect0
190ms303kbIncorect0
200ms303kbOK5
Punctaj total35

Ceva nu functioneaza?