#include <iostream>
#include <ctime>
#inclide <cmath>
using namespace std;
int main()
{
setlocale(0,"")
double y,x,xmin=0.5,xmax=3.1,hx=0.21,a,amin=-1.4,amax=-0.1,
ha =0.1, b=1.5;
x=xmin;
a=amin;
cout<<x y\n";
while(x<=xmax,a<=amax)
{
if(x<b)y=sin(fabs(a*x+pow(b,a)));
if(x>=b)y=cos(fabs(a*x-pow(b,a)));
cout<<x<<" "<<y<<"\n";
x+=hx;
a+=ha;
}
cin.get();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3RpbWU+CiNpbmNsaWRlIDxjbWF0aD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKaW50IG1haW4oKQp7CiAgc2V0bG9jYWxlKDAsIiIpCiAgZG91YmxlIHkseCx4bWluPTAuNSx4bWF4PTMuMSxoeD0wLjIxLGEsYW1pbj0tMS40LGFtYXg9LTAuMSwKICBoYSA9MC4xLCBiPTEuNTsKICB4PXhtaW47CiAgYT1hbWluOwogIGNvdXQ8PHggeVxuIjsKICB3aGlsZSh4PD14bWF4LGE8PWFtYXgpCiAgewogICBpZih4PGIpeT1zaW4oZmFicyhhKngrcG93KGIsYSkpKTsKICAgaWYoeD49Yil5PWNvcyhmYWJzKGEqeC1wb3coYixhKSkpOwogICBjb3V0PDx4PDwiICI8PHk8PCJcbiI7CiAgIHgrPWh4OwogICBhKz1oYTsKICAgfQogICBjaW4uZ2V0KCk7CiAgIHJldHVybiAwOwogICB9CiAgIAogCiAgIA==
prog.cpp:3:2: error: invalid preprocessing directive
#inclide <cmath>
^
prog.cpp:7:18: error: expected ';' after expression
setlocale(0,"")
^
;
prog.cpp:12:10: error: expected ';' after expression
cout<<x y\n";
^
;
prog.cpp:12:12: error: expected ';' after expression
cout<<x y\n";
^
;
prog.cpp:12:12: error: expected expression
prog.cpp:12:14: warning: missing terminating '"' character [-Winvalid-pp-token]
cout<<x y\n";
^
prog.cpp:12:11: warning: expression result unused [-Wunused-value]
cout<<x y\n";
^
2 warnings and 5 errors generated.