记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:15: error: expected '(' before '\U0000ff08scanf_s'
    6 |         while (scanf_s("%d%d", &num1,
      |               ^~~~~~~~~
      |               (
foo.c:6:15: warning: implicit declaration of function '\U0000ff08scanf_s' [-Wimplicit-function-declaration]
    6 |         while (scanf_s("%d%d", &num1,
      |               ^~~~~~~~~
foo.c:6:34: error: 'num1' undeclared (first use in this function); did you mean 'num2'?
    6 |         while (scanf_s("%d%d", &num1,
      |                                  ^~~~
      |                                  num2
foo.c:6:34: note: each undeclared identifier is reported only once for each function it appears in
foo.c:6:9: note: '-Wmisleading-indentation' is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
    6 |         while (scanf_s("%d%d", &num1,
      |         ^~~~~
foo.c:6:9: note: adding '-flarge-source-files' will allow for more column-tracking support, at the expense of compilation time and memory
foo.c:30:36: error: expected declaration or statement at end of input
   30 |                                    }最小公倍数
      |                                    ^
foo.c:5:27: warning: unused variable 'tem' [-Wunused-variable]
    5 |         int p, mum1, num2,tem;
      |                           ^~~
foo.c:5:22: warning: unused variable 'num2' [-Wunused-variable]
    5 |         int p, mum1, num2,tem;
      |                      ^~~~
foo.c:5:16: warning: unused variable 'mum1' [-Wunused-variable]
    5 |         int p, mum1, num2,tem;
      |                ^~~~
foo.c:5:13: warning: unused variable 'p' [-Wunused-variable]
    5 |         int p, mum1, num2,tem;
      |             ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1079 xf1-2最大公倍数与最小公因数
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 18:54:19
评测时间
2022-08-27 18:54:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes