Borderou de evaluare (job #1920615)
Utilizator | Data | 10 martie 2017 08:44:25 | |
---|---|---|---|
Problema | Cezar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void citire()’:
user.cpp:33:18: error: ‘n’ was not declared in this scope
scanf("%hd%hd",&n,&k);
^
user.cpp:33:21: error: ‘k’ was not declared in this scope
scanf("%hd%hd",&n,&k);
^
user.cpp:34:2: error: ‘c’ was not declared in this scope
c=new short[10002];
^
user.cpp:36:21: error: ‘h’ was not declared in this scope
*(c+i)=1;dp[i]=0;h[i]=n;
^
user.cpp:43:21: error: ‘h’ was not declared in this scope
if (!dp[i]->next)h[++lh]=i;
^
user.cpp:43:25: error: ‘lh’ was not declared in this scope
if (!dp[i]->next)h[++lh]=i;
^
user.cpp:44:15: error: ‘h’ was not declared in this scope
*(c+n)=20000;h[n]=n;
^
user.cpp: In function ‘void desfrunzire()’:
user.cpp:50:11: error: ‘n’ was not declared in this scope
for (ii=n-1;ii>=k+1;ii--){
^
user.cpp:50:19: error: ‘k’ was not declared in this scope
for (ii=n-1;ii>=k+1;ii--){
^
user.cpp:51:10: error: ‘h’ was not declared in this scope
pmin=h[1];s+=*(c+pmin);
^
user.cpp:51:20: error: ‘c’ was not declared in this scope
pmin=h[1];s+=*(c+pmin);
^
user.cpp:56:18: error: ‘lh’ was not declared in this scope
else {h[1]=h[lh];h[lh]=n;lh--;}
^
user.cpp:58:17: error: ‘lh’ was not declared in this scope
while (2*i<=lh){
^
user.cpp:48:26: warning: unused variable ‘min’ [-Wunused-variable]
{ short ii,i,j,pmin;long min;
^
user.cpp: In function ‘int main()’:
user.cpp:74:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
printf("%d\n",s);
^
user.cpp:68:11: warning: unused variable ‘n’ [-Wunused-variable]
short n,k,lh;
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !