#include<stdio.h>
#include<math.h>
int main(void){
double a=0,r=0,n=0;
printf("Enter Constant a:");
scanf("%lf",&a);
printf("Enter Constant r:");
scanf("%lf",&r);
printf("Enter Variable n:");
scanf("%lf",&n);
double an;
an = geom_rec(a,r,n); // Line 15
return 0;
}
double geom_rec(double a,double r,double n){ // Line 20
double ans=a;
return a;
}
エラー:
Line 20: error: conflicting types for 'geom_rec'
Line 15: error: previous implicit declaration of 'geom_rec' was here