/in/foo.cc: In function 'int main()':
/in/foo.cc:11:22: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%ld%ld",&n,&m);
^
/in/foo.cc:11:22: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:14:26: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[20]' [-Wformat=]
scanf("%s%ld",&c,&t);
^
/in/foo.cc:14:26: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:27:16: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
printf("%ld",s);
^
/in/foo.cc:19:12: warning: unused variable 'p' [-Wunused-variable]
long long p=floor(log(m)/log(2));
^