Borderou de evaluare (job #2838416)

Utilizator TudosieRazvanTudosie Marius-Razvan TudosieRazvan Data 23 ianuarie 2022 16:22:02
Problema Cifre4 Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void reinit()': main.cpp:18:15: warning: iteration 600004 invokes undefined behavior [-Waggressive-loop-optimizations] 18 | viz[i]=false; | ~~~~~~^~~~~~ main.cpp:16:19: note: within this loop 16 | for(int i=1; i<=NMAX; i++) | ^ main.cpp:18:15: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 600005 is out of the bounds [0, 600005] of object 'viz' with type 'bool [600005]' [-Warray-bounds] 18 | viz[i]=false; | ~~~~~~^~~~~~ main.cpp:10:6: note: 'viz' declared here 10 | bool viz[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 'tata' with type 'int [600005]' [-Warray-bounds] 19 | tata[i]=-1; | ~~~~~~~^~~ main.cpp:11:15: note: 'tata' declared here 11 | int cif[NMAX],tata[NMAX]; | ^~~~ main.cpp:20:15: 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] 20 | 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:26:11: main.cpp:18:15: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 600005 is out of the bounds [0, 600005] of object 'viz' with type 'bool [600005]' [-Warray-bounds] 18 | viz[i]=false; | ~~~~~~^~~~~~ main.cpp: In function 'void cautNumar(int, int)': main.cpp:10:6: note: 'viz' declared here 10 | bool viz[NMAX]; | ^~~ In function 'void reinit()', inlined from 'void cautNumar(int, int)' at main.cpp:26: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 'tata' with type 'int [600005]' [-Warray-bounds] 19 | tata[i]=-1; | ~~~~~~~^~~ main.cpp: In function 'void cautNumar(int, int)': main.cpp:11:15: note: 'tata' declared here 11 | int cif[NMAX],tata[NMAX]; | ^~~~ In function 'void reinit()', inlined from 'void cautNumar(int, int)' at main.cpp:26:11: main.cpp:20:15: 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] 20 | cif[i]=0; | ~~~~~~^~ main.cpp: In function 'void cautNumar(int, int)': main.cpp:11:5: note: 'cif' declared here
Test Timp executie Memorie folosita Mesaj Punctaj/test
17ms5283kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?