Borderou de evaluare (job #1941501)
Utilizator | Data | 27 martie 2017 12:50:44 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:23:23: error: ‘sort’ was not declared in this scope
sort(a+1,a+n+1,cmp);
^
user.cpp:25:5: error: ‘l’ was not declared in this scope
l[n]=1;mx=n;
^
user.cpp:25:12: error: ‘mx’ was not declared in this scope
l[n]=1;mx=n;
^
user.cpp:27:9: error: ‘nx’ was not declared in this scope
nx[i]=cauta(p[i]+1,n,a[p[i]].x);
^
user.cpp:27:39: error: ‘cauta’ was not declared in this scope
nx[i]=cauta(p[i]+1,n,a[p[i]].x);
^
user.cpp:32:12: error: ‘nx’ was not declared in this scope
while (nx[i]!=n+1){
^
user.cpp:21:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&n);
^
user.cpp:22:45: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=n;i++) {fscanf(f,"%d",&v[i]);a[i].x=v[i];a[i].p=i;}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !