Borderou de evaluare (job #961559)
Utilizator | Data | 12 iunie 2013 16:38:22 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:13: error: expected initializer before ‘u’
int a[10024]u,p,s,i,j,n,x[10024],t[10024],m;
^
user.cpp: In function ‘void afis(int)’:
user.cpp:9:14: error: ‘t’ was not declared in this scope
afis(t[k]);
^
user.cpp:10:12: error: ‘a’ was not declared in this scope
g<<a[k]<<" ";
^
user.cpp: In function ‘int main()’:
user.cpp:16:8: error: ‘n’ was not declared in this scope
f>>n;
^
user.cpp:17:9: error: ‘i’ was not declared in this scope
for(i=2;i<=n;i++)
^
user.cpp:18:8: error: ‘a’ was not declared in this scope
f>>a[i];
^
user.cpp:19:5: error: ‘x’ was not declared in this scope
x[1]=1;
^
user.cpp:20:5: error: ‘p’ was not declared in this scope
p=1;
^
user.cpp:21:5: error: ‘s’ was not declared in this scope
s=1;
^
user.cpp:22:9: error: ‘i’ was not declared in this scope
for(i=2;i<=n;i++)
^
user.cpp:25:9: error: ‘u’ was not declared in this scope
u=s;
^
user.cpp:28:13: error: ‘m’ was not declared in this scope
m=(u+p)/2;
^
user.cpp:29:16: error: ‘a’ was not declared in this scope
if(a[i]>a[x[m]])
^
user.cpp:38:13: error: ‘t’ was not declared in this scope
t[i]=x[p-1];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !