Borderou de evaluare (job #1652150)
Utilizator | Data | 14 martie 2016 18:33:15 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:7: error: ‘MAX’ was not declared in this scope
int a[MAX],b[MAX],poz[MAX];
^
user.cpp:8:14: error: ‘MAX’ was not declared in this scope
int a[MAX],b[MAX],poz[MAX];
^
user.cpp:8:23: error: ‘MAX’ was not declared in this scope
int a[MAX],b[MAX],poz[MAX];
^
user.cpp: In function ‘void citire()’:
user.cpp:14:10: error: ‘a’ was not declared in this scope
fin>>a[i];
^
user.cpp: In function ‘int caut(int, int, int)’:
user.cpp:23:14: error: ‘a’ was not declared in this scope
if(x<a[b[m]])
^
user.cpp:23:16: error: ‘b’ was not declared in this scope
if(x<a[b[m]])
^
user.cpp: In function ‘void subsir()’:
user.cpp:33:5: error: ‘a’ was not declared in this scope
a[0]=1234567890;
^
user.cpp:36:9: error: ‘poz’ was not declared in this scope
poz[i]=0;
^
user.cpp:40:20: error: ‘b’ was not declared in this scope
poz[i]=b[k-1];
^
user.cpp:46:20: error: ‘b’ was not declared in this scope
poz[i]=b[k-1];
^
user.cpp:32:11: warning: unused variable ‘j’ [-Wunused-variable]
int i,j,k;
^
user.cpp: In function ‘void tipar()’:
user.cpp:57:11: error: ‘b’ was not declared in this scope
for(i=b[m];i>0;i=poz[i])
^
user.cpp:57:22: error: ‘poz’ was not declared in this scope
for(i=b[m];i>0;i=poz[i])
^
user.cpp:58:12: error: ‘a’ was not declared in this scope
g<<a[i]<<' ';
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !