记录详情

Compile Error

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

信息

递交者
类型
递交
题目
A7-6 数组的左移函数
比赛
2022春 C语言课程设计 作业2
语言
C
递交时间
2022-03-25 15:24:55
评测时间
2022-03-25 15:24:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes