trol.cpp: In function 'int main()':
trol.cpp:10:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q);
~~~~~^~~~~~~~~~
trol.cpp:16: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:63:19: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
ans += 45ll*((b-a+1)/9);
~^~
trol.cpp:63:19: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]