Borderou de evaluare (job #2840914)

Utilizator TudosieRazvanTudosie Marius-Razvan TudosieRazvan Data 28 ianuarie 2022 23:38:18
Problema Multiplu Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void reinit()': main.cpp:18:17: warning: iteration 600004 invokes undefined behavior [-Waggressive-loop-optimizations] 18 | tata[i] = -1; | ~~~~~~~~^~~~ main.cpp:16:23: note: within this loop 16 | for (int i = 1; i <= NMAX; i++) | ^ main.cpp:18:17: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [2400020, 2400023] is out of the bounds [0, 2400020] of object 'tata' with type 'int [600005]' [-Warray-bounds] 18 | tata[i] = -1; | ~~~~~~~~^~~~ main.cpp:11:16: note: 'tata' declared here 11 | int cif[NMAX], tata[NMAX]; | ^~~~ main.cpp:19:16: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [2400020, 2400023] is out of the bounds [0, 2400020] of object 'cif' with type 'int [600005]' [-Warray-bounds] 19 | cif[i] = 0; | ~~~~~~~^~~ main.cpp:11:5: note: 'cif' declared here 11 | int cif[NMAX], tata[NMAX]; | ^~~ In function 'void reinit()', inlined from 'void cautNumar(int, int)' at main.cpp:25:11: main.cpp:18:17: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [2400020, 2400023] is out of the bounds [0, 2400020] of object 'tata' with type 'int [600005]' [-Warray-bounds] 18 | tata[i] = -1; | ~~~~~~~~^~~~ main.cpp: In function 'void cautNumar(int, int)': main.cpp:11:16: note: 'tata' declared here 11 | int cif[NMAX], tata[NMAX]; | ^~~~ In function 'void reinit()', inlined from 'void cautNumar(int, int)' at main.cpp:25:11: main.cpp:19:16: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [2400020, 2400023] is out of the bounds [0, 2400020] of object 'cif' with type 'int [600005]' [-Warray-bounds] 19 | cif[i] = 0; | ~~~~~~~^~~ main.cpp: In function 'void cautNumar(int, int)': main.cpp:11:5: note: 'cif' declared here 11 | int cif[NMAX], tata[NMAX]; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
178ms36884kbMemory limit exceeded00
279ms36880kbMemory limit exceeded00
382ms36884kbMemory limit exceeded00
46ms4702kbKilled by Signal 1100
56ms4788kbKilled by Signal 110
6110ms36880kbMemory limit exceeded0
76ms4730kbKilled by Signal 1100
86ms4816kbKilled by Signal 110
96ms4820kbKilled by Signal 110
1014ms5832kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?