Main.cc: In function ‘int main()’:
Main.cc:3:5: error: ‘i’ was not declared in this scope
i
^
Main.cc:7:14: error: ‘co’ is not a member of ‘std’
std::co
^~
Main.cc:7:14: note: suggested alternative: ‘clog’
std::co
^~
clog
Main.cc:9:17: error: ‘n’ was not declared in this scope
std::cin >> n;
^
Main.cc:11:5: error: ‘fo’ was not declared in this scope
fo
^~
Main.cc:19:5: error: expected primary-expression before ‘}’ token
}
^
Main.cc:5:12: warning: unused variable ‘pi’ [-Wunused-variable]
double pi = 0;
^~
Main.cc: At global scope:
Main.cc:20:1: error: expected unqualified-id before string constant
"Approximation of pi after "<< n << " terms: " << pi << std:: endl;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Main.cc:21:1: error: expected unqualified-id before ‘return’
return 0;
^~~~~~
Main.cc:22:1: error: expected declaration before ‘}’ token
}
^