记录详情

Compile Error

foo.c: In function 'Mul':
foo.c:5:19: error: invalid suffix ";i" on integer constant
    5 |         for(int i=0;i<n;i++)
      |                   ^~~~
foo.c:5:29: error: expected ';' before ')' token
    5 |         for(int i=0;i<n;i++)
      |                             ^
      |                             ;
foo.c: In function 'main':
foo.c:15:18: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'long long int *' [-Wformat=]
   15 |         scanf("%ld%d",&x,&n);
      |                ~~^    ~~
      |                  |    |
      |                  |    long long int *
      |                  long int *
      |                %lld
foo.c:17:19: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
   17 |         printf("%ld",y);
      |                 ~~^  ~
      |                   |  |
      |                   |  long long int
      |                   long int
      |                 %lld
foo.c:18:16: error: invalid suffix ";" on integer constant
   18 |         return 0;
      |                ^~~
foo.c:18:19: error: expected ';' before '}' token
   18 |         return 0;
      |                   ^
      |                   ;
   19 | }
      | ~                  
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A11-1 高精度整数与常规整数的乘法
语言
C
递交时间
2022-10-10 10:47:54
评测时间
2022-10-10 10:47:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes