Error: incompatible type for argument 1 of ‘pow’ - C (СИ)
Формулировка задачи:
в этой программе:
в printf выдаёт ошибки - lab4.c:21: error: incompatible type for argument 1 of ‘pow’
В чём дело, подскажите.
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
int main()
{
int x;
double f1,f2;
puts("x2+sin3x\tcos3x+exp^-2x\tf1/f2\n");
scanf("%d",&x);
for(x=-2;x<=3;x+=0.4);
printf("%.4lf\t\t%.4lf\t\t%.4lf\n",(f1=pow(x,2)+pow(sin(x),3),f2=cos(3*x)+pow(exp,-2*x)),f1/f2);
return 0;
}Решение задачи: «Error: incompatible type for argument 1 of ‘pow’»
textual
Листинг программы
double x = exp(-2.);
printf ("%f", x);