Accepted
/in/foo.cc: In function 'int main()':
/in/foo.cc:21:31: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   scanf("%d%d",&x[i].q,&x[i].f);
                ~~~~~~~        ^
/in/foo.cc:21:31: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]