Borderou de evaluare (job #1121329)
Utilizator | Data | 25 februarie 2014 12:30:51 | |
---|---|---|---|
Problema | Cel mai lung subsir comun | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int solve(int, int)’:
user.cpp:15:5: error: ‘a’ was not declared in this scope
if(a[i] == b[j]) dp[i][j] = 1 + solve(i-1, j-1);
^
user.cpp:15:13: error: ‘b’ was not declared in this scope
if(a[i] == b[j]) dp[i][j] = 1 + solve(i-1, j-1);
^
user.cpp: In function ‘void reconstruct(int, int)’:
user.cpp:23:5: error: ‘a’ was not declared in this scope
if(a[i] == b[j]) {
^
user.cpp:23:13: error: ‘b’ was not declared in this scope
if(a[i] == b[j]) {
^
user.cpp: In function ‘int main()’:
user.cpp:37:5: error: ‘n’ was not declared in this scope
f>>n>>m;
^
user.cpp:37:8: error: ‘m’ was not declared in this scope
f>>n>>m;
^
user.cpp:38:29: error: ‘a’ was not declared in this scope
for(int i=1; i<=n; i++) f>>a[i];
^
user.cpp:39:29: error: ‘b’ was not declared in this scope
for(int i=1; i<=m; i++) f>>b[i];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !