Borderou de evaluare (job #2600448)
Utilizator | Data | 12 aprilie 2020 17:04:11 | |
---|---|---|---|
Problema | Cifre 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:11: error: conflicting declaration 'int tot'
int x, t, tot;
^~~
main.cpp:8:5: note: previous declaration as 'int tot [10]'
int tot[10] = {1, 6, 1, 2, 2, 2, 1, 4, 0, 0};
^~~
main.cpp: In function 'void Read()':
main.cpp:19:25: error: incompatible types in assignment of 'int' to 'int [10]'
tot += becuri[x % 10];
^
main.cpp:29:14: error: 'mare' was not declared in this scope
res += mare[*it] * total;
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !