Borderou de evaluare (job #3037086)

Utilizator DevilonnetPescar Denis Devilonnet Data 25 martie 2023 12:55:38
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 'void init()': main.cpp:17:14: warning: iteration 10001 invokes undefined behavior [-Waggressive-loop-optimizations] 17 | dp[i]=0,nr_cont[i]=0; | ~~~~~^~ main.cpp:16:19: note: within this loop 16 | for(int i=0; i<=10001; ++i) | ~^~~~~~~ main.cpp:17:14: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [40004, 40007] is out of the bounds [0, 40004] of object 'dp' with type 'int [10001]' [-Warray-bounds] 17 | dp[i]=0,nr_cont[i]=0; | ~~~~~^~ main.cpp:12:5: note: 'dp' declared here 12 | int dp[10001]; | ^~ main.cpp:17:27: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [40004, 40007] is out of the bounds [0, 40004] of object 'nr_cont' with type 'int [10001]' [-Warray-bounds] 17 | dp[i]=0,nr_cont[i]=0; | ~~~~~~~~~~^~ main.cpp:13:5: note: 'nr_cont' declared here 13 | int nr_cont[10001],ok,sumfinal,minim; | ^~~~~~~ In function 'void init()', inlined from 'int main()' at main.cpp:35:13: main.cpp:17:14: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [40004, 40007] is out of the bounds [0, 40004] of object 'dp' with type 'int [10001]' [-Warray-bounds] 17 | dp[i]=0,nr_cont[i]=0; | ~~~~~^~ main.cpp: In function 'int main()': main.cpp:12:5: note: 'dp' declared here 12 | int dp[10001]; | ^~ In function 'void init()', inlined from 'int main()' at main.cpp:35:13: main.cpp:17:27: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [40004, 40007] is out of the bounds [0, 40004] of object 'nr_cont' with type 'int [10001]' [-Warray-bounds] 17 | dp[i]=0,nr_cont[i]=0; | ~~~~~~~~~~^~ main.cpp: In function 'int main()': main.cpp:13:5: note: 'nr_cont' declared here 13 | int nr_cont[10001],ok,sumfinal,minim; | ^~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
Punctaj total0

Ceva nu functioneaza?