Balanso skaičius

Taškai: 0

Compile: FAIL

balanso_skaicius.cpp: In function ‘int main()’: balanso_skaicius.cpp:13:15: error: size of array ‘a’ has non-integral type ‘double’ double a[n],sum; ^ balanso_skaicius.cpp:16:16: error: invalid types ‘double [1][double]’ for array subscript fd>>a[n]; ^ balanso_skaicius.cpp:17:17: error: invalid types ‘double [1][double]’ for array subscript sum+=a[n]; ^ balanso_skaicius.cpp:19:33: error: ‘setprecision’ was not declared in this scope cout<<fixed<<setprecision(10)<<sum/n; ^

nr.resulttimemessage