Borderou de evaluare (job #1828176)
Utilizator | Data | 12 decembrie 2016 21:30:38 | |
---|---|---|---|
Problema | Morcovi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:38: error: size of array ‘d’ is too large
int pas[22],p,n,v[1001],d[1<<22][1000],maxi=-99;
^
user.cpp: In function ‘int main()’:
user.cpp:11:37: error: ‘d’ was not declared in this scope
for(int i=1; i<=n; i++) f>>v[i],d[0][i]=v[i];
^
user.cpp:20:35: error: ‘d’ was not declared in this scope
if(j+pas[poz]<=n) d[conf+(1<<poz)][j+pas[poz]]=max(d[conf+(1<<poz)][j+pas[poz]],d[conf][j]+v[j+pas[poz]]);
^
user.cpp:21:35: error: ‘d’ was not declared in this scope
if(j-pas[poz]>=1) d[conf+(1<<poz)][j-pas[poz]]=max(d[conf+(1<<poz)][j-pas[poz]],d[conf][j]+v[j-pas[poz]]);
^
user.cpp:24:43: error: ‘d’ was not declared in this scope
for(int i=1; i<=n; i++) maxi=max(maxi,d[(1<<p)-1][i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !