Borderou de evaluare (job #636550)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cepe digitale (clasa a 6-a) | Compilator | cpp-32 |
Rundă | pregatire_oji_cls6_vianu | Status | evaluat |
Dată | 28 feb. 2022 14:51:46 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:62: error: redeclaration of 'int j'
8 | int va[16], vb[16], na, nb, i=0, j, a, b, aa=0, bb=0, c, j, n;
| ^
main.cpp:8:38: note: 'int j' previously declared here
8 | int va[16], vb[16], na, nb, i=0, j, a, b, aa=0, bb=0, c, j, n;
| ^
main.cpp:75:1: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
75 | else
| ^~~~
main.cpp:78:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
78 | for (i = 1; i <= n; i++)
| ^~~
main.cpp:80:22: error: expected ';' before 'if'
80 | j = n - i + 1
| ^
| ;
81 | if (va[j] != vb[i])
| ~~