/ Vijos /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1393 盗窃-大海的奇迹
语言
C++
递交时间
2021-08-10 21:50:08
评测时间
2021-08-10 21:50:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes