/ Vijos /

记录详情

Compile Error

/in/foo.c:4:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>>' token
  cin>>n>>d;
     ^~
/in/foo.c:5:2: error: expected identifier or '(' before 'for'
  for(int i=1;i<=n;i++)
  ^~~
/in/foo.c:5:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
  for(int i=1;i<=n;i++)
               ^~
/in/foo.c:5:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
  for(int i=1;i<=n;i++)
                    ^~
/in/foo.c:17:2: warning: data definition has no type or storage class
  c[1]=1;
  ^
/in/foo.c:17:2: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
/in/foo.c:17:2: error: conflicting types for 'c'
/in/foo.c:2:13: note: previous declaration of 'c' was here
 int b[2600],c[2600];
             ^
/in/foo.c:17:7: error: invalid initializer
  c[1]=1;
       ^
/in/foo.c:18:2: error: expected identifier or '(' before 'for'
  for(int i=2;i<=n;i++)
  ^~~
/in/foo.c:18:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
  for(int i=2;i<=n;i++)
               ^~
/in/foo.c:18:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
  for(int i=2;i<=n;i++)
                    ^~
/in/foo.c:34:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<<' token
  cout<<c[n];
      ^~

信息

递交者
类型
递交
题目
P1331 看球的巴士
语言
C
递交时间
2019-10-31 15:25:30
评测时间
2019-10-31 15:25:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes