Borderou de evaluare (job #2917740)

Utilizator Gica-gicutaGeorge Gica-gicuta Data 7 august 2022 14:32:51
Problema Iepuri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void modulo()': main.cpp:42:22: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] 42 | mat[i][j]%=MOD; | ^ main.cpp:41:23: note: within this loop 41 | for(int j=1; j<=3; j++) | ~^~~ main.cpp:42:22: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] 42 | mat[i][j]%=MOD; | ^ main.cpp:39:19: note: within this loop 39 | for(int i=1; i<=3; i++) | ~^~~ main.cpp:42:22: warning: array subscript 3 is above array bounds of 'long long int [3]' [-Warray-bounds] 42 | mat[i][j]%=MOD; | ^ main.cpp:42:22: warning: array subscript 3 is above array bounds of 'long long int [3]' [-Warray-bounds] main.cpp: In function 'int main()': main.cpp:42:22: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] 42 | mat[i][j]%=MOD; | ^ main.cpp:39:19: note: within this loop 39 | for(int i=1; i<=3; i++) | ~^~~ main.cpp:55:18: warning: array subscript 3 is above array bounds of 'long long int [3]' [-Warray-bounds] 55 | mati[1][3]=Z; | ~~~~~~~~~^ main.cpp:58:18: warning: array subscript 3 is above array bounds of 'long long int [3]' [-Warray-bounds] 58 | mati[2][3]=Y; | ~~~~~~~~~^ main.cpp:59:15: warning: array subscript 3 is above array bounds of 'long long int [3][3]' [-Warray-bounds] 59 | mati[3][1]=Z; | ~~~~~~^ main.cpp:9:11: note: while referencing 'mati' 9 | long long mati[N][N]; | ^~~~ main.cpp:60:15: warning: array subscript 3 is above array bounds of 'long long int [3][3]' [-Warray-bounds] 60 | mati[3][2]=Y; | ~~~~~~^ main.cpp:9:11: note: while referencing 'mati' 9 | long long mati[N][N]; | ^~~~ main.cpp:61:18: warning: array subscript 3 is above array bounds of 'long long int [3]' [-Warray-bounds] 61 | mati[3][3]=X; | ~~~~~~~~~^ main.cpp:42:22: warning: array subscript 3 is above array bounds of 'long long int [3]' [-Warray-bounds] 42 | mat[i][j]%=MOD; | ^ main.cpp:42:22: warning: array subscript 3 is above array bounds of 'long long int [3]' [-Warray-bounds] main.cpp:66:17: warning: array subscript 3 is above array bounds of 'long long int [3]' [-Warray-bounds]
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbKilled by Signal 110
21ms184kbKilled by Signal 110
31ms184kbKilled by Signal 110
41ms184kbKilled by Signal 110
51ms184kbKilled by Signal 110
61ms184kbKilled by Signal 110
71ms184kbKilled by Signal 110
81ms184kbKilled by Signal 110
91ms184kbKilled by Signal 110
101ms184kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?