Borderou de evaluare (job #3131159)

Utilizator AlexMihai1801Mihai Alexandru AlexMihai1801 Data 19 mai 2023 13:06:44
Problema Rfinv Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void clear_matrix()': main.cpp:50:33: warning: iteration 50 invokes undefined behavior [-Waggressive-loop-optimizations] 50 | w[i][j] = 0; | ~~~~~~~~^~~ main.cpp:49:35: note: within this loop 49 | for (int j = 1; j <= NMAX; j++) { | ^ main.cpp:50:33: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [10404, 10611] is out of the bounds [0, 10404] of object 'w' with type 'int [51][51]' [-Warray-bounds] 50 | w[i][j] = 0; | ~~~~~~~~^~~ main.cpp:8:5: note: 'w' declared here 8 | int w[NMAX][NMAX]; | ^ main.cpp:51:33: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [10404, 10611] is out of the bounds [0, 10404] of object 'd' with type 'int [51][51]' [-Warray-bounds] 51 | d[i][j] = 0; | ~~~~~~~~^~~ main.cpp:9:5: note: 'd' declared here 9 | int d[NMAX][NMAX]; | ^ In function 'void clear_matrix()', inlined from 'int main()' at main.cpp:87:15: main.cpp:50:33: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [10404, 10611] is out of the bounds [0, 10404] of object 'w' with type 'int [51][51]' [-Warray-bounds] 50 | w[i][j] = 0; | ~~~~~~~~^~~ main.cpp: In function 'int main()': main.cpp:8:5: note: 'w' declared here 8 | int w[NMAX][NMAX]; | ^ In function 'void clear_matrix()', inlined from 'int main()' at main.cpp:87:15: main.cpp:51:33: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [10404, 10611] is out of the bounds [0, 10404] of object 'd' with type 'int [51][51]' [-Warray-bounds] 51 | d[i][j] = 0; | ~~~~~~~~^~~ main.cpp: In function 'int main()': main.cpp:9:5: note: 'd' declared here 9 | int d[NMAX][NMAX]; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
16ms438kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?