记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:10: error: stray '\357' in program
     int n,a[20],j,i;
          ^
/in/foo.c:5:11: error: stray '\274' in program
     int n,a[20],j,i;
           ^
/in/foo.c:5:12: error: stray '\214' in program
     int n,a[20],j,i;
            ^
/in/foo.c:5:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
     int n,a[20],j,i;
             ^
/in/foo.c:5:13: error: 'a' undeclared (first use in this function)
/in/foo.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:5:19: error: 'j' undeclared (first use in this function)
     int n,a[20],j,i;
                   ^
/in/foo.c:5:18: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     int n,a[20],j,i;
                  ^
/in/foo.c:5:21: error: 'i' undeclared (first use in this function)
     int n,a[20],j,i;
                     ^
/in/foo.c:5:20: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     int n,a[20],j,i;
                    ^
/in/foo.c:6:12: error: 'n' undeclared (first use in this function)
  for(i=0;i<n;i++)
            ^
/in/foo.c:8:19: error: 'b' undeclared (first use in this function)
  scanf("%d%d",&a,&b);
                   ^

信息

递交者
类型
自测
题目
P1142 八
语言
C
递交时间
2020-03-07 15:41:00
评测时间
2020-03-07 15:41:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes