记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:9: error: 'n' undeclared (first use in this function)
    5 |         n=0;
      |         ^
foo.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:15: warning: missing terminating " character
    8 |         scanf("%d,&a);
      |               ^
foo.c:8:15: error: missing terminating " character
    8 |         scanf("%d,&a);
      |               ^~~~~~~~
foo.c:9:9: error: expected expression before 'while'
    9 |         while(i!='\n')
      |         ^~~~~
foo.c:19:18: error: expected ';' before '}' token
   19 |         return 0;
      |                  ^
      |                  ;
   20 | }
      | ~                 
foo.c:7:14: warning: unused variable 'arr' [-Wunused-variable]
    7 |         char arr[10086];
      |              ^~~
foo.c:6:14: warning: unused variable 'i' [-Wunused-variable]
    6 |         char i;
      |              ^
foo.c:4:13: warning: unused variable 'n\U0000ff0ca' [-Wunused-variable]
    4 |         int n,a;
      |             ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1097 xf2-10倒叙输出
语言
C
递交时间
2022-09-24 10:16:08
评测时间
2022-09-24 10:16:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes