foo.cc: In function 'int main()':
foo.cc:12:24: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
12 | while(scanf("%s%I64d",s+1,&m)!=EOF){
| ~~~~^ ~~
| | |
| int* long long int*
| %I64lld
foo.cc:19:19: warning: overflow in conversion from 'long long int' to 'int' changes value from '4557430888798830399' to '1061109567' [-Woverflow]
19 | memset(dp,INF,sizeof(dp));
| ^~~
foo.cc:43:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
43 | printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
| ~~~~^ ~~~~
| | |
| int long long int
| %I64lld
foo.cc:43:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
43 | printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
| ~~~~^ ~~~~
| | |
| int long long int
| %I64lld
foo.cc:43:33: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
43 | printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
| ~~~~^ ~~~~
| | |
| int long long int
| %I64lld
foo.cc:43:39: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long long int' [-Wformat=]
43 | printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
| ~~~~^ ~~~~
| | |
| int long long int
| %I64lld
foo.cc:43:15: warning: 'sum2' may be used uninitialized [-Wmaybe-uninitialized]
43 | printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:11:40: note: 'sum2' was declared here
11 | long long i,j,k,n,m,ans1,ans2,sum1,sum2;
| ^~~~
foo.cc:43:15: warning: 'sum1' may be used uninitialized [-Wmaybe-uninitialized]
43 | printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:11:35: note: 'sum1' was declared here
11 | long long i,j,k,n,m,ans1,ans2,sum1,sum2;
| ^~~~
foo.cc:43:15: warning: 'ans2' may be used uninitialized [-Wmaybe-uninitialized]
43 | printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:11:30: note: 'ans2' was declared here
11 | long long i,j,k,n,m,ans1,ans2,sum1,sum2;
| ^~~~
foo.cc:43:15: warning: 'ans1' may be used uninitialized [-Wmaybe-uninitialized]
43 | printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:11:25: note: 'ans1' was declared here
11 | long long i,j,k,n,m,ans1,ans2,sum1,sum2;
| ^~~~
[Hydro](https://hydro.ac)提供评测服务