/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:12:13: error: expected ';' before '}' token
  {c[5]=i+1-j};}
             ^
/in/foo.c:4:30: warning: unused variable 'k' [-Wunused-variable]
  int S[200],i=0,j=0,c[5],t,h,k;
                              ^
/in/foo.c:4:28: warning: unused variable 'h' [-Wunused-variable]
  int S[200],i=0,j=0,c[5],t,h,k;
                            ^
/in/foo.c:4:26: warning: unused variable 't' [-Wunused-variable]
  int S[200],i=0,j=0,c[5],t,h,k;
                          ^
/in/foo.c:4:21: warning: variable 'c' set but not used [-Wunused-but-set-variable]
  int S[200],i=0,j=0,c[5],t,h,k;
                     ^
/in/foo.c: At top level:
/in/foo.c:13:2: error: expected identifier or '(' before 'for'
  for(h=0;h<=4;h++)
  ^~~
/in/foo.c:13:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
  for(h=0;h<=4;h++)
           ^~
/in/foo.c:13:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
  for(h=0;h<=4;h++)
                ^~
/in/foo.c:18:2: warning: data definition has no type or storage class
  k=c[0];
  ^
/in/foo.c:18:2: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
/in/foo.c:18:4: error: 'c' undeclared here (not in a function)
  k=c[0];
    ^
/in/foo.c:19:9: error: expected declaration specifiers or '...' before string constant
  printf("%d",k);
         ^~~~
/in/foo.c:19:14: error: expected declaration specifiers or '...' before 'k'
  printf("%d",k);
              ^
/in/foo.c:20:1: error: expected identifier or '(' before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1005 超长数字串
语言
C
递交时间
2024-11-23 10:03:26
评测时间
2024-11-23 10:03:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes