piApproximator.cpp:30:13: warning: missing terminating " character
piApproximator.cpp:30: error: missing terminating " character
piApproximator.cpp:31:46: warning: missing terminating " character
piApproximator.cpp:31: error: missing terminating " character
piApproximator.cpp: In function ‘int main()’:
piApproximator.cpp:31: error: ‘expansion’ was not declared in this scope
piApproximator.cpp:31: error: expected unqualified-id before string constant
piApproximator.cpp:31: error: expected `;' before string constant
These are lines 29 and 31:
cout << "This program approximates pi using an n-term series expansion.";
cout << endl << "Enter the value of n>";
cin >> n;
I'm sure there is no extra " floating around. The program runs on compilr.com, but when I try to run it on pico, these error messages pop up, and it fails. I have to run it on pico for school.