记录详情

Compile Error

foo.c: In function 'main':
foo.c:10:4: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 |    scanf_s("%d%d",&s1,&s2);
      |    ^~~~~~~
      |    scanf
foo.c:14:22: error: 'sum\U0000ff09' undeclared (first use in this function)
   14 |    printf("sum=%d\n",sum);
      |                      ^~~~~
foo.c:14:22: note: each undeclared identifier is reported only once for each function it appears in
foo.c:14:27: error: expected ')' before ';' token
   14 |    printf("sum=%d\n",sum);
      |          ~                ^
      |                           )
foo.c:17:16: error: expected ';' before '}' token
   17 |    return0;
      |                ^
      |                ;
   18 | }
      | ~               
foo.c:9:8: warning: variable 'remainder' set but not used [-Wunused-but-set-variable]
    9 |    int remainder=0;
      |        ^~~~~~~~~
foo.c:8:8: warning: variable 'product' set but not used [-Wunused-but-set-variable]
    8 |    int product=0;
      |        ^~~~~~~
foo.c:7:8: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
    7 |    int sum=0;
      |        ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1078 xf1-1两数和、积、余
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 10:19:57
评测时间
2022-08-27 10:19:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes