foo.cc: In function 'long int qiu(int, int)':
foo.cc:8:9: warning: unused variable 'x' [-Wunused-variable]
int x=2,y=1;
^
foo.cc:8:13: warning: unused variable 'y' [-Wunused-variable]
int x=2,y=1;
^
foo.cc: In function 'int main()':
foo.cc:28:37: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d^%d mod %d=%d",a,b,p,g);
^
foo.cc:28:37: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
foo.cc:28:37: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
foo.cc:28:37: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
foo.cc: In function 'long int qiu(int, int)':
foo.cc:21:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
[Hydro](https://hydro.ac)提供评测服务