foo.c: In function 'main':
foo.c:8:30: error: expected ')' before 'a'
8 | printf("a 和b 的和:%d,"a + b);
| ~ ^
| )
foo.c:8:26: warning: format '%d' expects a matching 'int' argument [-Wformat=]
8 | printf("a 和b 的和:%d,"a + b);
| ~^
| |
| int
foo.c:9:34: error: expected ')' before 'a'
9 | printf("a 和b 的积:%d,"a * b);
| ~ ^
| )
foo.c:9:30: warning: format '%d' expects a matching 'int' argument [-Wformat=]
9 | printf("a 和b 的积:%d,"a * b);
| ~^
| |
| int
foo.c:10:34: error: expected ')' before 'a'
10 | printf("a 和b 的余:%d,"a % b);
| ~ ^
| )
foo.c:10:30: warning: format '%d' expects a matching 'int' argument [-Wformat=]
10 | printf("a 和b 的余:%d,"a % b);
| ~^
| |
| int
foo.c:6:13: warning: unused variable 'b' [-Wunused-variable]
6 | int b = 5;
| ^
foo.c:5:13: warning: unused variable 'a' [-Wunused-variable]
5 | int a = 3;
| ^
[Hydro](https://hydro.ac)提供评测服务