/in/foo.cc: In function 'int main()':
/in/foo.cc:9:35: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d%d%d", &b, &p, &k);
^
/in/foo.cc:9:35: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:9:35: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
/in/foo.cc:17:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n", ans);//输出
^
/in/foo.cc:8:24: warning: variable 'a' set but not used [-Wunused-but-set-variable]
long long b=0, a=0, p=0, k=0, ans=1, c=0;
^
/in/foo.cc:8:46: warning: variable 'c' set but not used [-Wunused-but-set-variable]
long long b=0, a=0, p=0, k=0, ans=1, c=0;
^