Borderou de evaluare (job #1358226)
Utilizator | Data | 24 februarie 2015 14:35:09 | |
---|---|---|---|
Problema | Cel mai lung subsir comun | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:43: error: size of array ‘lcs’ is too large
int n, m, x[maxn], y[maxn], lcs[maxn][maxn];
^
user.cpp: In function ‘int main()’:
user.cpp:26:16: error: ‘lcs’ was not declared in this scope
lcs[i][j] = 1 + lcs[i-1][j-1];
^
user.cpp:30:16: error: ‘lcs’ was not declared in this scope
lcs[i][j] = std::max(lcs[i-1][j], lcs[i][j-1]);
^
user.cpp:35:18: error: ‘lcs’ was not declared in this scope
printf("%d", lcs[n][m]);
^
user.cpp:10:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cmlsc.in", "r", stdin);
^
user.cpp:12:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:15:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x[i]);
^
user.cpp:19:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &y[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !