0_0_25753042_29635.cpp: In function 'double sum(double)': 0_0_25753042_29635.cpp:17:5: error: 'r' was not declared in this scope r[0] = x; ^