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)提供评测服务