/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:9:9: error: variable-sized object may not be initialized
    9 |         int a[m]={};
      |         ^~~
/in/foo.c:14:17: error: case label does not reduce to an integer constant
   14 |                 case n<10:
      |                 ^~~~
/in/foo.c:17:17: error: case label does not reduce to an integer constant
   17 |                 case n>=10 && n<100:
      |                 ^~~~
/in/foo.c:20:17: error: case label does not reduce to an integer constant
   20 |                 case n>=100 && n<1000:
      |                 ^~~~
/in/foo.c:23:17: error: case label does not reduce to an integer constant
   23 |                 case n>1000 && n<5000:
      |                 ^~~~
/in/foo.c:29:17: error: 'wei_temp' undeclared (first use in this function)
   29 |                 wei_temp=wei;
      |                 ^~~~~~~~
/in/foo.c:29:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:32:44: error: expected expression before 'int'
   32 |                                 temp = n % int(pow(10,wei));}
      |                                            ^~~
/in/foo.c:33:41: error: expected expression before 'int'
   33 |                         else{temp = n % int(pow(10,wei))-(n % int(pow(10,wei+1)*10));}
      |                                         ^~~
/in/foo.c: At top level:
/in/foo.c:43:9: error: expected identifier or '(' before 'if'
   43 |         if(success==0){
      |         ^~
/in/foo.c:46:1: error: expected identifier or '(' before '}' token
   46 | }
      | ^
/in/foo.c:47:7: error: expected declaration specifiers or '...' before string constant
   47 | scanf("%d",n);
      |       ^~~~
/in/foo.c:47:12: error: unknown type name 'n'
   47 | scanf("%d",n);
      |            ^
/in/foo.c:48:1: error: expected identifier or '(' before 'return'
   48 | return 0;
      | ^~~~~~
/in/foo.c:49:1: error: expected identifier or '(' before '}' token
   49 | }
      | ^

信息

递交者
类型
递交
题目
P1065 最小数字倍数
语言
C
递交时间
2025-10-07 12:53:49
评测时间
2025-10-07 12:53:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes