Borderou de evaluare (job #1044001)
Utilizator | Data | 29 noiembrie 2013 09:49:12 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:1: error: expected ‘,’ or ‘;’ before ‘int’
int a[100005],n,maxx,lis[100005];
^
user.cpp: In function ‘int main()’:
user.cpp:10:8: error: ‘n’ was not declared in this scope
f>>n;
^
user.cpp:11:5: error: ‘lis’ was not declared in this scope
lis[n]=1;
^
user.cpp:13:12: error: ‘a’ was not declared in this scope
f>>a[i];
^
user.cpp:16:9: error: ‘maxx’ was not declared in this scope
maxx=0;
^
user.cpp:18:29: error: ‘a’ was not declared in this scope
if(maxx<lis[j]&&a[i]<a[j])
^
user.cpp:23:12: error: ‘maxx’ was not declared in this scope
if(maxx<lis[i])
^
user.cpp:25:8: error: ‘maxx’ was not declared in this scope
g<<maxx<<'\n';
^
user.cpp:27:26: error: ‘a’ was not declared in this scope
if(lis[i]==maxx&&a[i]>k)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !