记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:7:19: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'char *' [-Wformat=]
    7 |         scanf("%d%d%d",&a,&b,&c);
      |                  ~^       ~~
      |                   |       |
      |                   int *   char *
      |                  %hhd
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='-')
      |                 ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 5342, expect 1888. 1ms 200.0 KiB
#2 Wrong Answer Read 5458, expect 66666. 1ms 284.0 KiB
#3 Wrong Answer Read 347695, expect 99999999. 2ms 284.0 KiB
#4 Wrong Answer Read 16777728, expect 1111111. 2ms 284.0 KiB
#5 Wrong Answer Read 234404083, expect 111111110. 1ms 284.0 KiB

信息

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