foo.cc:16:8: error: redefinition of 'double m'
double m,n,r;
^
foo.cc:4:8: note: 'double m' previously declared here
double m,n,r;
^
foo.cc:16:10: error: redefinition of 'double n'
double m,n,r;
^
foo.cc:4:10: note: 'double n' previously declared here
double m,n,r;
^
foo.cc:16:12: error: redefinition of 'double r'
double m,n,r;
^
foo.cc:4:12: note: 'double r' previously declared here
double m,n,r;
^
foo.cc: In function 'int main()':
foo.cc:17:5: error: redefinition of 'int main()'
int main()
^~~~
foo.cc:5:5: note: 'int main()' previously defined here
int main()
^~~~
foo.cc: In function 'int main()':
foo.cc:7:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf %lf %lf",&m,&n,&r);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:19:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf %lf %lf",&m,&n,&r);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务