Run id: 92227

Main.cc: In function 'double niuyanxi(double)':
Main.cc:12:22: error: invalid operands of types 'double' and 'int' to binary 'operator%'
     for(int i=1;i<=n%10;i++){
                      ^
Main.cc:14:23: error: invalid operands of types 'double' and 'int' to binary 'operator%'
     }for(int i=1;i<=n%10;i++){
                       ^
Main.cc: In function 'int main()':
Main.cc:28:23: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'double' [-Wformat=]
 }printf("%.1ld",ans/10);
                       ^