记录详情

Compile Error

foo.c: In function 'main':
foo.c:8:16: warning: missing terminating " character
    8 |         printf("输入n个数:\n);
      |                ^
foo.c:8:16: error: missing terminating " character
    8 |         printf("输入n个数:\n);
      |                ^~~~~~~~~~~~~~~~
foo.c:9:20: error: expected expression before 'for'
    9 |                    for(i=0;i<n;i++);
      |                    ^~~
foo.c:41:32: error: expected ';' before '}' token
   41 |                    return 0;
      |                                ^
      |                                ;
   42 | }
      | ~                               
foo.c:7:17: warning: unused variable 'k' [-Wunused-variable]
    7 |         int i,j,k;
      |                 ^
foo.c:7:15: warning: unused variable 'j' [-Wunused-variable]
    7 |         int i,j,k;
      |               ^
foo.c:7:13: warning: unused variable 'i' [-Wunused-variable]
    7 |         int i,j,k;
      |             ^
foo.c:6:13: warning: unused variable 'a' [-Wunused-variable]
    6 |         int a[n];
      |             ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 12:11:53
评测时间
2022-08-27 12:11:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes