/in/foo.cc: In function 'int main()':
/in/foo.cc:28:41: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
scanf("%d %s",&que[i].dir,&que[i].name);
^
/in/foo.cc:28:41: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[200]' [-Wformat=]
/in/foo.cc:34:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
scanf("%d %d",&flag,&x);//flag=LL();x=LL();
^
/in/foo.cc:51:28: error: invalid operands of types '__gnu_cxx::__enable_if<true, double>::__type {aka double}' and 'int' to binary 'operator%'
if(pos<1){ pos=n-abs(pos)%n;}
~~~~~~~~^~
/in/foo.cc:20:6: warning: unused variable 'j' [-Wunused-variable]
int j,k;
^
/in/foo.cc:20:8: warning: unused variable 'k' [-Wunused-variable]
int j,k;
^