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)提供评测服务