/in/foo.cc: In function 'int main()':
/in/foo.cc:57:31: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d%d%d", &n, &m, &p);
^
/in/foo.cc:57:31: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc:57:31: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long int*' [-Wformat=]
/in/foo.cc:68:56: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d", unit.power(n).element[SIZE-1][SIZE-1] );
^