Borderou de evaluare (job #2843162)
Utilizator | Data | 2 februarie 2022 10:00:14 | |
---|---|---|---|
Problema | Cel mai lung subsir comun | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:10: error: array bound is not an integer constant before ']' token
13 | int v[MAX][MAX];
| ^
main.cpp:13:15: error: array bound is not an integer constant before ']' token
13 | int v[MAX][MAX];
| ^
main.cpp:14:10: error: array bound is not an integer constant before ']' token
14 | int s[MAX];
| ^
main.cpp: In function 'int main()':
main.cpp:29:17: error: 'v' was not declared in this scope
29 | v[i][j]=1+v[i-1][j-1];
| ^
main.cpp:31:17: error: 'v' was not declared in this scope
31 | v[i][j]=max(v[i-1][j], v[i][j-1]);
| ^
main.cpp:33:11: error: 'v' was not declared in this scope
33 | cout<<v[n][m]<<'\n';
| ^
main.cpp:40:13: error: 's' was not declared in this scope
40 | s[++cnt]=a[i];
| ^
main.cpp:49:15: error: 's' was not declared in this scope
49 | cout<<s[ii]<<' ';
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !