foo.c:11:6: warning: return type of 'main' is not 'int' [-Wmain]
11 | void main()
| ^~~~
foo.c: In function 'main':
foo.c:19:32: error: expected ')' before 'x'
19 | printf("在循环左移%d位:"x);
| ^
| )
foo.c:19:26: warning: format '%d' expects a matching 'int' argument [-Wformat=]
19 | printf("在循环左移%d位:"x);
| ~^
| |
| int
foo.c:22:8: error: stray '\357' in program
22 | printf(“\n”);
| ^
foo.c:22:9: error: stray '\274' in program
22 | printf(“\n”);
| ^
foo.c:22:10: error: stray '\210' in program
22 | printf(“\n”);
| ^
foo.c:22:11: error: stray '\342' in program
22 | printf(“\n”);
| ^
foo.c:22:12: error: stray '\200' in program
22 | printf(“\n”);
| ^
foo.c:22:13: error: stray '\234' in program
22 | printf(“\n”);
| ^
foo.c:22:14: error: stray '\' in program
22 | printf(“\n”);
| ^
foo.c:22:2: warning: statement with no effect [-Wunused-value]
22 | printf(“\n”);
| ^~~~~~
foo.c:22:8: error: expected ';' before 'n'
22 | printf(“\n”);
| ^ ~
| ;
foo.c:22:16: error: stray '\342' in program
22 | printf(“\n”);
| ^
foo.c:22:17: error: stray '\200' in program
22 | printf(“\n”);
| ^
foo.c:22:18: error: stray '\235' in program
22 | printf(“\n”);
| ^
foo.c:22:19: error: stray '\357' in program
22 | printf(“\n”);
| ^
foo.c:22:20: error: stray '\274' in program
22 | printf(“\n”);
| ^
foo.c:22:21: error: stray '\211' in program
22 | printf(“\n”);
| ^
foo.c:15:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:17:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
17 | scanf("%d",&x);
| ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务