include < cmath>
#include <iostream>
#include <iostream>
#include <cmath>
using namespace std;
int main( )
{
double x, t, S, e; //ввод данных;
int k;
cout << "x and eps" << endl;
cin >> x >> e;
t = 1 ;
S = t;
k = 1 ;
printf ( "%4c%10c%11c\n " , 'k' , 't' , 'S' ) ;
printf ( "%4d%15e%15.8f\n " , k - 1 , t, S) ;
while ( fabs ( t) > e)
{ t = pow ( x + 1 , 2 ) / k* t;
S = S + t;
printf ( "%4d%15e%15.8f\n " , k, t, S) ;
k++ ;
}
printf ( "%2s%15.8f\n " ,"s=" , S) ;
system ( "pause" ) ;
return 0 ;
}
aW5jbHVkZSA8Y21hdGg+CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsKIGRvdWJsZSB4LCB0LCBTLCBlOyAvL9Cy0LLQvtC0INC00LDQvdC90YvRhTsKIGludCBrOwogY291dCA8PCAieCBhbmQgZXBzIiA8PCBlbmRsOwogY2luICA+PiB4ID4+IGU7CiB0ID0gMTsKIFMgPSB0OwogayA9IDE7CiBwcmludGYoIiU0YyUxMGMlMTFjXG4iLCAnaycsICd0JywgJ1MnKTsKIHByaW50ZigiJTRkJTE1ZSUxNS44ZlxuIiwgayAtIDEsIHQsIFMpOwogd2hpbGUgKGZhYnModCkgPiBlKQoge3QgPSBwb3coeCArIDEsIDIpIC8gayp0OwogUyA9IFMgKyB0OwogcHJpbnRmKCIlNGQlMTVlJTE1LjhmXG4iLCBrLCB0LCBTKTsKIGsrKzsKIH0KIHByaW50ZigiJTJzJTE1LjhmXG4iLCJzPSIsIFMpOwogc3lzdGVtKCJwYXVzZSIpOwogcmV0dXJuIDA7Cn0=
compilation info
prog.cpp:1: error: expected constructor, destructor, or type conversion before '<' token
prog.cpp: In function 'int main()':
prog.cpp:25: error: 'system' was not declared in this scope
stdout