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)提供评测服务