记录详情

Compile Error

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

信息

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