记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:21: warning: format '%lo' expects argument of type 'long unsigned int *', but argument 2 has type 'long long int *' [-Wformat=]
    5 |     while (scanf("%long longd%long longd", &x1, &x2)) {
      |                   ~~^                      ~~~
      |                     |                      |
      |                     long unsigned int *    long long int *
      |                   %llo
foo.c:5:32: warning: format '%lo' expects argument of type 'long unsigned int *', but argument 3 has type 'long long int *' [-Wformat=]
    5 |     while (scanf("%long longd%long longd", &x1, &x2)) {
      |                              ~~^                ~~~
      |                                |                |
      |                                |                long long int *
      |                                long unsigned int *
      |                              %llo
foo.c:6:19: warning: format '%lo' expects argument of type 'long unsigned int', but argument 2 has type 'long long int' [-Wformat=]
    6 |         printf("%long longd\n", x1 + x2);
      |                 ~~^             ~~~~~~~
      |                   |                |
      |                   |                long long int
      |                   long unsigned int
      |                 %llo
foo.c:7:19: warning: format '%lo' expects argument of type 'long unsigned int', but argument 2 has type 'long long int' [-Wformat=]
    7 |         printf("%long longd\n", x1 * x2);
      |                 ~~^             ~~~~~~~
      |                   |                |
      |                   |                long long int
      |                   long unsigned int
      |                 %llo
foo.c:8:19: warning: format '%lo' expects argument of type 'long unsigned int', but argument 2 has type 'long long int' [-Wformat=]
    8 |         printf("%long longd\n", x1 % x2);
      |                 ~~^             ~~~~~~~
      |                   |                |
      |                   |                long long int
      |                   long unsigned int
      |                 %llo
foo.c:8:41: error: expected ';' before '\U0000ff1b'
    8 |         printf("%long longd\n", x1 % x2);
      |                                         ^~
      |                                         ;
foo.c:11:12: error: invalid suffix ";" on integer constant
   11 |     return 0;
      |            ^~~
foo.c:11:15: error: expected ';' before '}' token
   11 |     return 0;
      |               ^
      |               ;
   12 | }
      | ~              
[Hydro](https://hydro.ac)提供评测服务

信息

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