foo.cc: In function 'int main()':
foo.cc:32:18: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
scanf("%lld",&n);
~~^
foo.cc:33:51: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
for (int i = 1; i <= n; ++ i) scanf("%lld",&b[i]) ,b[i]-=i;
~~~~~^
foo.cc:32:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&n);
~~~~~^~~~~~~~~~~
foo.cc:33:53: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 1; i <= n; ++ i) scanf("%lld",&b[i]) ,b[i]-=i;
~~~~~~~~~~~~~~~~~~~~^~~~~~~~