记录详情

Compile Error

foo.c: In function 'main':
foo.c:2:11: error: expected expression before '=' token
 #define N = 1000000000
           ^
foo.c:5:11: note: in expansion of macro 'N'
     int a[N];
           ^
foo.c:2:11: error: expected expression before '=' token
 #define N = 1000000000
           ^
foo.c:6:8: note: in expansion of macro 'N'
  int b[N];
        ^
foo.c:10:10: error: 'o' undeclared (first use in this function)
  for(j = o;j<6;j++)
          ^
foo.c:10:10: note: each undeclared identifier is reported only once for each function it appears in
foo.c:12:19: error: expected ']' before '}' token
   b[j] = a[(j+1)%6};
                   ^
foo.c:12:19: error: expected ';' before '}' token
foo.c:6:6: warning: unused variable 'b' [-Wunused-variable]
  int b[N];
      ^
foo.c:5:9: warning: unused variable 'a' [-Wunused-variable]
     int a[N];
         ^
foo.c: At top level:
foo.c:14:5: error: expected identifier or '(' before 'for'
     for(j=0;j<6;j++)
     ^~~
foo.c:14:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
     for(j=0;j<6;j++)
              ^
foo.c:14:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
     for(j=0;j<6;j++)
                  ^~
foo.c:16:12: error: expected declaration specifiers or '...' before string constant
     printf("\n");
            ^~~~
foo.c:17:5: error: expected identifier or '(' before 'for'
     for(j=0;j<6;j++)
     ^~~
foo.c:17:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
     for(j=0;j<6;j++)
              ^
foo.c:17:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
     for(j=0;j<6;j++)
                  ^~
foo.c:19:5: error: expected identifier or '(' before 'return'
     return 0;
     ^~~~~~
foo.c:20:1: error: expected identifier or '(' before '}' token
 }
 ^

自豪的采用jd5进行评测(github.com/masnn/jd5)

信息

递交者
类型
自测
题目
1-1 数字循环左移
语言
C
递交时间
2020-02-04 14:30:21
评测时间
2020-02-04 14:30:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes