记录详情

Wrong Answer

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

信息

递交者
类型
递交
题目
3-5 计算器
比赛
2022年迎新赛(第一场)
语言
C
递交时间
2022-08-15 19:54:00
评测时间
2022-08-15 19:54:00
评测机
分数
60
总耗时
5ms
峰值内存
256.0 KiB