Borderou de evaluare (job #665478)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Magic 2 (clasa a 5-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 1 oct. 2022 09:20:35 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:30:22: error: invalid type argument of unary '*' (have 'int')
30 | if (v[1]*10+v[2])*v[1]>P)
| ^~~~~
main.cpp:36:28: error: invalid type argument of unary '*' (have 'int')
36 | if (v[i]*10+v[i-1])*(v[i]*10+v[i+1])>P)
| ^~~~~~~~~~~~~~~~~
main.cpp:41:24: error: invalid type argument of unary '*' (have 'int')
41 | if (v[l]*10+v[l-1])*v[l]>P)
| ^~~~~