foo.cc: In function 'long long int slove()':
foo.cc:36:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
36 | if(temp!=0) printf("%d",temp);
| ~^ ~~~~
| | |
| | long long int
| int
| %lld
foo.cc:39:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
39 | printf("%d",ans[i]);
| ~^ ~~~~~~
| | |
| int long long int
| %lld
foo.cc:13:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
13 | scanf("%s",num);
| ~~~~~^~~~~~~~~~
foo.cc:19:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
19 | scanf("%s",num);
| ~~~~~^~~~~~~~~~
foo.cc:11:26: warning: 'la' may be used uninitialized in this function [-Wmaybe-uninitialized]
11 | int a[N],b[N],ans[N],la,lb;
| ^~
foo.cc:11:29: warning: 'lb' may be used uninitialized in this function [-Wmaybe-uninitialized]
11 | int a[N],b[N],ans[N],la,lb;
| ^~
[Hydro](https://hydro.ac)提供评测服务