Borderou de evaluare (job #1090447)
Utilizator | Data | 22 ianuarie 2014 18:27:52 | |
---|---|---|---|
Problema | Sccm | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:16: error: expected initializer before numeric constant
const int NMax 23002;
^
user.cpp:10:13: error: ‘NMax’ was not declared in this scope
int M, N, A[NMax], B[NMax], D[NMax][NMax], sir[NMax], bst;
^
user.cpp:10:22: error: ‘NMax’ was not declared in this scope
int M, N, A[NMax], B[NMax], D[NMax][NMax], sir[NMax], bst;
^
user.cpp:10:31: error: ‘NMax’ was not declared in this scope
int M, N, A[NMax], B[NMax], D[NMax][NMax], sir[NMax], bst;
^
user.cpp:10:37: error: ‘NMax’ was not declared in this scope
int M, N, A[NMax], B[NMax], D[NMax][NMax], sir[NMax], bst;
^
user.cpp:10:48: error: ‘NMax’ was not declared in this scope
int M, N, A[NMax], B[NMax], D[NMax][NMax], sir[NMax], bst;
^
user.cpp: In function ‘int main()’:
user.cpp:21:22: error: ‘A’ was not declared in this scope
scanf("%d", &A[i]);
^
user.cpp:23:22: error: ‘B’ was not declared in this scope
scanf("%d", &B[i]);
^
user.cpp:27:17: error: ‘A’ was not declared in this scope
if (A[i] == B[j])
^
user.cpp:27:25: error: ‘B’ was not declared in this scope
if (A[i] == B[j])
^
user.cpp:28:17: error: ‘D’ was not declared in this scope
D[i][j] = 1 + D[i-1][j-1];
^
user.cpp:30:17: error: ‘D’ was not declared in this scope
D[i][j] = maxim(D[i-1][j], D[i][j-1]);
^
user.cpp:33:13: error: ‘A’ was not declared in this scope
if (A[i] == B[j])
^
user.cpp:33:21: error: ‘B’ was not declared in this scope
if (A[i] == B[j])
^
user.cpp:34:13: error: ‘sir’ was not declared in this scope
sir[++bst] = A[i], --i, --j;
^
user.cpp:35:18: error: ‘D’ was not declared in this scope
else if (D[i-1][j] < D[i][j-1])
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !