art.cpp: In function 'int main()':
art.cpp:15:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
15 | scanf("%d %d",&a[i],&b[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
art.cpp:15:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
15 | scanf("%d %d",&a[i],&b[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
art.cpp:12:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
art.cpp:15:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%d %d",&a[i],&b[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~