记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:7:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
  scanf("%d%c%d",&a,&b,&c);
          ^
/in/foo.c:7:14: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'long long int *' [-Wformat=]
  scanf("%d%c%d",&a,&b,&c);
              ^
/in/foo.c:8:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     if(b='+')
     ^~
/in/foo.c:10:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  else if(b='-')
  ^~~~
/in/foo.c:12:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d\n",d);
           ^
# 状态 耗时 内存占用
#1 Accepted 1ms 228.0 KiB
#2 Accepted 1ms 208.0 KiB
#3 Accepted 1ms 248.0 KiB
#4 Wrong Answer 0ms 252.0 KiB
#5 Wrong Answer 0ms 232.0 KiB

信息

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