Accepted
/in/foo.cc: In function 'int main()': /in/foo.cc:23:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=] printf("%ld",ans); ^
/in/foo.cc: In function 'int main()': /in/foo.cc:23:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=] printf("%ld",ans); ^