记录详情

Compile Error

foo.c: In function 'main':
foo.c:11:28: warning: missing terminating ' character
   11 |         while (scanf("%d%d"' &x1, &x2) == 2)
      |                            ^
foo.c:11:28: error: missing terminating ' character
   11 |         while (scanf("%d%d"' &x1, &x2) == 2)
      |                            ^~~~~~~~~~~~~~~~~ 
foo.c:11:28: error: expected ')' before '{' token
   11 |         while (scanf("%d%d"' &x1, &x2) == 2)
      |                     ~      ^
      |                            )
   12 |                                  {
      |                                  ~
foo.c:11:24: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
   11 |         while (scanf("%d%d"' &x1, &x2) == 2)
      |                       ~^
      |                        |
      |                        int *
foo.c:11:26: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
   11 |         while (scanf("%d%d"' &x1, &x2) == 2)
      |                         ~^
      |                          |
      |                          int *
foo.c:16:17: error: expected ')' before '}' token
   16 |         return 0
      |                 ^
      |                 )
   17 | }
      | ~                
foo.c:11:15: note: to match this '('
   11 |         while (scanf("%d%d"' &x1, &x2) == 2)
      |               ^
foo.c:17:1: error: expected expression before '}' token
   17 | }
      | ^
foo.c:10:21: warning: unused variable 'x' [-Wunused-variable]
   10 |         int x1, x2, x;
      |                     ^
foo.c:10:17: warning: unused variable 'x2' [-Wunused-variable]
   10 |         int x1, x2, x;
      |                 ^~
foo.c:10:13: warning: unused variable 'x1' [-Wunused-variable]
   10 |         int x1, x2, x;
      |             ^~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1079 xf1-2最大公倍数与最小公因数
语言
C
递交时间
2022-08-27 12:48:28
评测时间
2022-08-27 12:48:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes