prog.cpp: In function 'int main()':
prog.cpp:18:6: error: redeclaration of 'int s'
int s=0
^
prog.cpp:7:19: note: 'int s' previously declared here
int data[10], s;
^
prog.cpp:19:12: error: 'i' was not declared in this scope
for (i=0; i<10; i++)
^
prog.cpp:21:2: error: 'ser' was not declared in this scope
ser=s/10;
^
prog.cpp:22:5: error: 'count' was not declared in this scope
count<<"середнє значення дорівнює "<<ser;
^
prog.cpp:25:10: error: expected '}' at end of input
return 0;
^