Borderou de evaluare (job #2537349)
Utilizator | Data | 3 februarie 2020 16:24:58 | |
---|---|---|---|
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: In function 'int main()':
main.cpp:16:13: warning: left operand of comma operator has no effect [-Wunused-value]
for (i, 1, M)
^
main.cpp:16:16: warning: right operand of comma operator has no effect [-Wunused-value]
for (i, 1, M)
^
main.cpp:16:17: error: expected ';' before ')' token
for (i, 1, M)
^
main.cpp:17:27: warning: right operand of comma operator has no effect [-Wunused-value]
scanf("%d", &A[i]);
^
main.cpp:18:5: error: expected primary-expression before 'for'
for (i, 1, N)
^~~
main.cpp:18:5: error: expected ';' before 'for'
main.cpp:18:5: error: expected primary-expression before 'for'
main.cpp:18:5: error: expected ')' before 'for'
main.cpp:18:13: warning: left operand of comma operator has no effect [-Wunused-value]
for (i, 1, N)
^
main.cpp:18:16: warning: right operand of comma operator has no effect [-Wunused-value]
for (i, 1, N)
^
main.cpp:18:17: error: expected ';' before ')' token
for (i, 1, N)
^
main.cpp:19:27: warning: right operand of comma operator has no effect [-Wunused-value]
scanf("%d", &B[i]);
^
main.cpp:21:5: error: expected primary-expression before 'for'
for (i, 1, M)
^~~
main.cpp:21:5: error: expected ';' before 'for'
main.cpp:21:5: error: expected primary-expression before 'for'
main.cpp:21:5: error: expected ')' before 'for'
main.cpp:21:13: warning: left operand of comma operator has no effect [-Wunused-value]
for (i, 1, M)
^
main.cpp:21:16: warning: right operand of comma operator has no effect [-Wunused-value]
for (i, 1, M)
^
main.cpp:21:17: error: expected ';' before ')' token
for (i, 1, M)
^
main.cpp:24:42: warning: right operand of comma operator has no effect [-Wunused-value]
D[i][j] = 1 + D[i-1][j-1];
^
main.cpp:25:13: error: expected primary-expression before 'else'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !