trol.cpp: In function 'int main()':
trol.cpp:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q);
~~~~~^~~~~~~~~~
trol.cpp:14:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", &l, &r);
~~~~~^~~~~~~~~~~~~~~~~~~~~
trol.cpp:61:19: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
ans += 45ll*((b-a+1)/9);
~^~
trol.cpp:61:19: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]