collider.cpp:16:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
collider.cpp: In function 'int main()':
collider.cpp:26:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &l, &r);
~~~~~^~~~~~~~~~~~~~~~
collider.cpp:35:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &l);
~~~~~^~~~~~~~~~