foo.cc: In function 'int main()':
foo.cc:14:30: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'LL* {aka long long int*}' [-Wformat=]
scanf("%d%d%lld", &n, &a, &r);
~~ ^
foo.cc:14:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%lld", &n, &a, &r);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:16:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld", &b, &t);
~~~~~^~~~~~~~~~~~~~~~~~~~