Wrong Answer
/in/foo.cc: In function 'int main()': /in/foo.cc:5:16: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'char*' [-Wformat=] scanf("%ld",&f); ~~^ /in/foo.cc:10:16: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=] printf("%ld",x); ^