fork download
  1. def ObservationalError(values, arithmetic_mean):
  2. sum = 0;
  3. for i in range(len(values)):
  4. sum = sum + (values[i] - arithmetic_mean)
  5. return 2.8 * sqrt(sum / (len(values) * (len(values) - 1)))
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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)):
  ^
stdout
Standard output is empty