prog.cpp: In function ‘float mean(sample)’:
prog.cpp:16:9: error: expected primary-expression before ‘float’
return float(float a +b)/2.0;
^
prog.cpp:16:9: error: expected ‘;’ before ‘float’
prog.cpp:16:9: error: expected primary-expression before ‘float’
prog.cpp:16:9: error: expected ‘;’ before ‘float’
prog.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^