0_0_16023938_10867.cpp:28:9: error: stray '\' in program double ans = (1.0-h)\n; ^ 0_0_16023938_10867.cpp: In function 'int main()': 0_0_16023938_10867.cpp:28:30: error: expected ',' or ';' before 'n' double ans = (1.0-h)\n; ^