Borderou de evaluare (job #3037259)

Utilizator DevilonnetPescar Denis Devilonnet Data 25 martie 2023 14:05:21
Problema Plata minimă fără rest Status done
Runda Universitatea Tehnică din Cluj-Napoca - 2023 - Concurs Compilator cpp-64
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:79:18: warning: iteration 30000 invokes undefined behavior [-Waggressive-loop-optimizations] 79 | dp[i]=0,nr_cont[i]=0,cost[i]=0; | ~~~~~^~ main.cpp:78:23: note: within this loop 78 | for(int i=1; i<=30001; ++i) | ~^~~~~~~ main.cpp:79:18: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [240008, 240015] is out of the bounds [0, 240008] of object 'dp' with type 'long long int [30001]' [-Warray-bounds] 79 | dp[i]=0,nr_cont[i]=0,cost[i]=0; | ~~~~~^~ main.cpp:11:11: note: 'dp' declared here 11 | long long dp[30001]; | ^~ main.cpp:79:31: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [240008, 240015] is out of the bounds [0, 240008] of object 'nr_cont' with type 'long long int [30001]' [-Warray-bounds] 79 | dp[i]=0,nr_cont[i]=0,cost[i]=0; | ~~~~~~~~~~^~ main.cpp:12:11: note: 'nr_cont' declared here 12 | long long nr_cont[30001],ok,sumfinal,minim; | ^~~~~~~ main.cpp:79:41: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [240008, 240015] is out of the bounds [0, 240008] of object 'cost' with type 'long long int [30001]' [-Warray-bounds] 79 | dp[i]=0,nr_cont[i]=0,cost[i]=0; | ~~~~~~~^~ main.cpp:9:11: note: 'cost' declared here 9 | long long cost[30001]; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1081kbIncorect0
Punctaj total0

Ceva nu functioneaza?