/ Vijos /

记录详情

Compile Error

foo.cc:9:14: error: expected ')' before 'x'
    9 | inline LL (LL x){return (x>0)?x:-x;}
      |           ~  ^~
      |              )
foo.cc: In function 'int main()':
foo.cc:24:33: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'LL*' {aka 'long long int*'} [-Wformat=]
   24 |     for (i=1;i<=n;i++)  scanf("%d%d",&w[i],&v[i]);
      |                                ~^    ~~~~~
      |                                 |    |
      |                                 int* LL* {aka long long int*}
      |                                %lld
foo.cc:24:35: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'LL*' {aka 'long long int*'} [-Wformat=]
   24 |     for (i=1;i<=n;i++)  scanf("%d%d",&w[i],&v[i]);
      |                                  ~^        ~~~~~
      |                                   |        |
      |                                   int*     LL* {aka long long int*}
      |                                  %lld
foo.cc:25:30: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'LL*' {aka 'long long int*'} [-Wformat=]
   25 |  for (i=1;i<=m;i++)  scanf("%d%d",&a[i],&b[i]);
      |                             ~^    ~~~~~
      |                              |    |
      |                              int* LL* {aka long long int*}
      |                             %lld
foo.cc:25:32: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'LL*' {aka 'long long int*'} [-Wformat=]
   25 |  for (i=1;i<=m;i++)  scanf("%d%d",&a[i],&b[i]);
      |                               ~^        ~~~~~
      |                                |        |
      |                                int*     LL* {aka long long int*}
      |                               %lld
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1740 聪明的质检员
语言
C++
递交时间
2022-08-10 16:58:42
评测时间
2022-08-10 16:58:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes