Borderou de evaluare (job #2600443)

Utilizator victorzarzuZarzu Victor victorzarzu Data 12 aprilie 2020 17:01:27
Problema Cifre 5 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:11: error: conflicting declaration 'int tot' int x, t, tot; ^~~ main.cpp:6: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:13:3: error: 'f' was not declared in this scope f>>t>>x; ^ main.cpp:17:25: error: incompatible types in assignment of 'int' to 'int [10]' tot += becuri[x % 10]; ^ main.cpp:23:5: error: 'g' was not declared in this scope g<<tot; ^ main.cpp:31:5: error: expected primary-expression before '}' token } ^ Non zero exit status: 1

Ceva nu functioneaza?