foo.cc: In function 'int main()':
foo.cc:44:43: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
  printf("%d^%d mod %d=%d", m, n, p, result);
                                           ^
foo.cc:44:43: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
foo.cc:44:43: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
foo.cc:44:43: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
   
  
    [Hydro](https://hydro.ac)提供评测服务