Borderou de evaluare (job #3191465)

Utilizator bjmafumatuAfumatu Bogdan bjmafumatu Data 9 ianuarie 2024 19:12:11
Problema Lista lui Andrei Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void nextLine(int, int)': main.cpp:27:25: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations] 27 | nr[1][i]=nr[2][i]; | ~~~~~~~^ main.cpp:25:19: note: within this loop 25 | for(int i=1; i<=26; i++) | ~^~~~ main.cpp:20:25: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations] 20 | if(comb[i][j]==false) nr[2][i]= (nr[2][i] + nr[1][j]) % MOD; | ~~~~~~~~~^ main.cpp:18:23: note: within this loop 18 | for(int j=1; j<=26; j++) | ~^~~~ main.cpp: In function 'int main()': main.cpp:48:38: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations] 48 | for(int i=1; i<=26; i++) nr[1][i]=1; | ~~~~~~~~^~ main.cpp:48:19: note: within this loop 48 | for(int i=1; i<=26; i++) nr[1][i]=1; | ~^~~~ main.cpp:53:45: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations] 53 | for(int i=1; i<=26; i++) s= (s + nr[1][i]) % MOD; | ~~~~~~~^ main.cpp:53:19: note: within this loop 53 | for(int i=1; i<=26; i++) s= (s + nr[1][i]) % MOD; | ~^~~~ main.cpp: In function 'void nextLine(int, int)': main.cpp:27: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] 27 | nr[1][i]=nr[2][i]; | ~~~~~~~~^~~~~~~~~ main.cpp:10:5: note: 'nr' declared here 10 | int nr[3][26]; | ^~ main.cpp:28: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] 28 | nr[2][i]=0; | ~~~~~~~~^~ main.cpp:10:5: note: 'nr' declared here 10 | int nr[3][26]; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK5
20ms303kbOK5
30ms303kbOK5
40ms303kbOK5
50ms303kbOK5
60ms303kbOK5
70ms303kbOK5
80ms303kbOK5
90ms303kbOK5
100ms303kbOK5
110ms303kbOK5
120ms303kbOK5
130ms303kbOK5
140ms303kbOK5
150ms303kbOK5
160ms303kbOK5
170ms303kbOK5
181ms303kbOK5
190ms303kbOK5
200ms303kbOK5
Punctaj total100

Ceva nu functioneaza?