Borderou de evaluare (job #1750055)
Utilizator | Data | 29 august 2016 15:35:25 | |
---|---|---|---|
Problema | Cel mai lung subsir comun | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:17: error: expected ‘]’ before ‘;’ token
#define MAX 1100;
^
user.cpp:10:7: note: in expansion of macro ‘MAX’
int d[MAX][MAX],res[MAX],resc;
^
user.cpp:10:10: error: expected unqualified-id before ‘]’ token
int d[MAX][MAX],res[MAX],resc;
^
user.cpp:10:15: error: expected unqualified-id before ‘]’ token
int d[MAX][MAX],res[MAX],resc;
^
user.cpp:10:24: error: expected unqualified-id before ‘]’ token
int d[MAX][MAX],res[MAX],resc;
^
user.cpp: In function ‘int main()’:
user.cpp:3:17: error: expected ‘]’ before ‘;’ token
#define MAX 1100;
^
user.cpp:18:8: note: in expansion of macro ‘MAX’
int b[MAX],a[MAX];
^
user.cpp:18:11: error: expected primary-expression before ‘]’ token
int b[MAX],a[MAX];
^
user.cpp:18:11: error: expected ‘;’ before ‘]’ token
user.cpp:18:18: error: expected primary-expression before ‘]’ token
int b[MAX],a[MAX];
^
user.cpp:18:18: error: expected ‘;’ before ‘]’ token
user.cpp:22:15: error: ‘a’ was not declared in this scope
scanf("%d",&a[i]);
^
user.cpp:25:15: error: ‘b’ was not declared in this scope
scanf("%d",&b[i]);
^
user.cpp:30:7: error: ‘a’ was not declared in this scope
if(a[i]==b[j])d[i][j]=1+d[i-1][j-1];
^
user.cpp:30:13: error: ‘b’ was not declared in this scope
if(a[i]==b[j])d[i][j]=1+d[i-1][j-1];
^
user.cpp:30:18: error: ‘d’ was not declared in this scope
if(a[i]==b[j])d[i][j]=1+d[i-1][j-1];
^
user.cpp:31:9: error: ‘d’ was not declared in this scope
else d[i][j]=max(d[i-1][j],d[i][j-1]);
^
user.cpp:34:8: error: ‘d’ was not declared in this scope
cout<<d[x][y]<<endl;
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !