记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:5:14: warning: format '%lf' expects argument of type 'double *', but argument 2 has type 'double' [-Wformat=]
     scanf("%lf%lf" ,a,b);
              ^
/in/foo.c:5:17: warning: format '%lf' expects argument of type 'double *', but argument 3 has type 'double' [-Wformat=]
     scanf("%lf%lf" ,a,b);
                 ^
/in/foo.c:10:16: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'double' [-Wformat=]
     printf("%lld+%lld = %lld\n",a,b,q);
                ^
/in/foo.c:10:21: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'double' [-Wformat=]
     printf("%lld+%lld = %lld\n",a,b,q);
                     ^
/in/foo.c:11:16: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'double' [-Wformat=]
     printf("%lld-%lld = %lld\n",a,b,w);
                ^
/in/foo.c:11:21: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'double' [-Wformat=]
     printf("%lld-%lld = %lld\n",a,b,w);
                     ^
/in/foo.c:12:16: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'double' [-Wformat=]
     printf("%lld*%lld = %lld\n",a,b,e);
                ^
/in/foo.c:12:21: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'double' [-Wformat=]
     printf("%lld*%lld = %lld\n",a,b,e);
                     ^
/in/foo.c:13:16: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'double' [-Wformat=]
     printf("%lld*%lld = %f\n",a,b,r);
                ^
/in/foo.c:13:21: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'double' [-Wformat=]
     printf("%lld*%lld = %f\n",a,b,r);
                     ^
/in/foo.c:5:5: warning: 'a' is used uninitialized in this function [-Wuninitialized]
     scanf("%lf%lf" ,a,b);
     ^~~~~~~~~~~~~~~~~~~~
/in/foo.c:5:5: warning: 'b' is used uninitialized in this function [-Wuninitialized]
# 状态 耗时 内存占用
#1 Wrong Answer 0ms 204.0 KiB
#2 Wrong Answer 0ms 212.0 KiB
#3 Wrong Answer 0ms 208.0 KiB
#4 Wrong Answer 0ms 212.0 KiB
#5 Wrong Answer 0ms 204.0 KiB

信息

递交者
类型
递交
题目
四则计算器
语言
C
递交时间
2019-03-03 03:26:12
评测时间
2019-03-03 08:32:33
评测机
分数
0
总耗时
4ms
峰值内存
212.0 KiB