art.cpp: In function 'int main()':
art.cpp:9:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
9 | scanf("%d",&n);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
art.cpp:8:16: warning: unused variable 'j' [-Wunused-variable]
8 | long long n,i,j,k,a,b;
| ^
art.cpp:8:18: warning: unused variable 'k' [-Wunused-variable]
8 | long long n,i,j,k,a,b;
| ^
art.cpp:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
art.cpp:11:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | scanf("%lld %lld",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~~~~~