def ObservationalError(values, arithmetic_mean): sum = 0; for i in range(len(values)): sum = sum + (values[i] - arithmetic_mean) return 2.8 * sqrt(sum / (len(values) * (len(values) - 1)))
Standard input is empty
prog.cpp:1:1: error: 'def' does not name a type def ObservationalError(values, arithmetic_mean): ^ prog.cpp:3:2: error: expected unqualified-id before 'for' for i in range(len(values)): ^
Standard output is empty