What is the error? Task calculation of the expansion function in a row. in the inner loop the value of the sum of the TEXT TASKS 
#include<cmath> #include<iostream> using namespace std; int factorial(int n) { int fact = 1; for (int i = 1; i <= n; i++) { fact *= i; } return fact; } int main() { int i, n; double x, xx, sum = 0.0, summa = 0.0, eps = 0.25; cin >> n; for (i = 0; i < n; i++) { cin >> x; xx = (-1) * x * x + 1; sum = eps + 1; if (abs(sum) > eps) { sum = pow(xx, i) / factorial(i); summa += sum; } cout << "Значение приближенное по eps:" << ' ' << summa << ' ' << endl; cout << "Значение без eps:" << ' ' << pow(M_E, xx) << endl; } } input data n = 5 x1 = -2.7 x2 = -0.1 x3 = 2.9 x4 = 17.9 x5 = 117.0
