Pagini recente » Cod sursa (job #2016567) | Monitorul de evaluare | Borderou de evaluare (job #1588877) | Cod sursa (job #1286632) | Borderou de evaluare (job #3037254)
Borderou de evaluare (job #3037254)
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<=50001; ++i)
| ~^~~~~~~
main.cpp:79:18: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [240008, 400015] 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, 400015] 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, 400015] 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 |
| 1 | 9ms | 1134kb | Killed by Signal 11 | 0 |
| Punctaj total | 0 |