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)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- 3-5 计算器
- 语言
- C
- 递交时间
- 2023-10-13 20:43:18
- 评测时间
- 2023-10-13 20:43:18
- 评测机
- 分数
- 0
- 总耗时
- 9ms
- 峰值内存
- 284.0 KiB