记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:7:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
    7 |         scanf("%d%c%d",&a,&b,&c);
      |                ~^      ~~
      |                 |      |
      |                 int *  long long int *
      |                %lld
foo.c:7:21: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'long long int *' [-Wformat=]
    7 |         scanf("%d%c%d",&a,&b,&c);
      |                    ~^        ~~
      |                     |        |
      |                     int *    long long int *
      |                    %lld
foo.c:8:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    8 |     if(b='+')
      |        ^
foo.c:10:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   10 |         else if(b='-')
      |                 ^
foo.c:12:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   12 |         printf("%d\n",d);
      |                 ~^    ~
      |                  |    |
      |                  int  long long int
      |                 %lld
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 284.0 KiB
#2 Accepted 1ms 200.0 KiB
#3 Accepted 2ms 200.0 KiB
#4 Wrong Answer Read 3580245, expect 1111111. 2ms 284.0 KiB
#5 Wrong Answer Read 358024670, expect 111111110. 1ms 284.0 KiB

信息

递交者
类型
递交
题目
3-5 计算器
语言
C
递交时间
2023-10-13 20:44:57
评测时间
2023-10-13 20:44:57
评测机
分数
60
总耗时
9ms
峰值内存
284.0 KiB