fancyfence.c: In function 'main':
fancyfence.c:29:13: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
29 | scanf("%d",&n);
| ~^ ~~
| | |
| | long long int *
| int *
| %lld
fancyfence.c:30:34: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
30 | for(int i=1;i<=n;++i)scanf("%d",h+i);
| ~^ ~~~
| | |
| | long long int *
| int *
| %lld
fancyfence.c:31:34: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
31 | for(int i=1;i<=n;++i)scanf("%d",w+i),pw[i]=pw[i-1]+w[i];
| ~^ ~~~
| | |
| | long long int *
| int *
| %lld
fancyfence.c:29:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
fancyfence.c:30:26: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | for(int i=1;i<=n;++i)scanf("%d",h+i);
| ^~~~~~~~~~~~~~~
fancyfence.c:31:26: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | for(int i=1;i<=n;++i)scanf("%d",w+i),pw[i]=pw[i-1]+w[i];
| ^~~~~~~~~~~~~~~