Borderou de evaluare (job #3036847)

Utilizator alessiamtr12Mitrica Alessia alessiamtr12 Data 25 martie 2023 10:46:57
Problema Plata minimă fără rest Status done
Runda Universitatea Tehnică din Cluj-Napoca - 2023 - Concurs Compilator cpp-64
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:57:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 57 | if(dp[n%2][i]>=c) | ^ main.cpp:70:30: warning: iteration 20005 invokes undefined behavior [-Waggressive-loop-optimizations] 70 | dp[0][i]=dp[1][i]=0; | ~~~~~~~~^~ main.cpp:68:22: note: within this loop 68 | for(int i=0;i<=20005;i++) | ~^~~~~~~ main.cpp:70:30: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [160040, 160043] is out of the bounds [0, 160040] of object 'dp' with type 'int [2][20005]' [-Warray-bounds] 70 | dp[0][i]=dp[1][i]=0; | ~~~~~~~~^~ main.cpp:7:5: note: 'dp' declared here 7 | int dp[2][20005],dpp[2][20005]; | ^~ main.cpp:71:32: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [160040, 160043] is out of the bounds [0, 160040] of object 'dpp' with type 'int [2][20005]' [-Warray-bounds] 71 | dpp[0][i]=dpp[1][i]=0; | ~~~~~~~~~^~ main.cpp:7:18: note: 'dpp' declared here 7 | int dp[2][20005],dpp[2][20005]; | ^~~ main.cpp:54:13: warning: 'nr' may be used uninitialized [-Wmaybe-uninitialized] 54 | int nr; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms557kbOK100
Punctaj total100

Ceva nu functioneaza?