#include<stdio.h> void main(){ int n; double rate,capital,deposit,a; scanf("%d%f%f",&n,&rate,&capital); //这儿就有错呀 a=rate+1; deposit=capital*pow(a,n); printf("deposit=%f\n",deposit); //这儿也有 }