/in/foo.cc: In function 'int main()':
/in/foo.cc:31:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d%lld",&n,&g);
^
/in/foo.cc:33:29: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d",&a[2*i-1]);
^
/in/foo.cc:35:49: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
for (int i=1; i<=2*n; i++) printf("%d ",a[i]);
^