jumps.cpp: In function 'void solve()':
jumps.cpp:15:33: warning: too many arguments for format [-Wformat-extra-args]
int l, r; scanf("%d", &l, &r);
^
jumps.cpp:8:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int n; scanf("%d", &n);
~~~~~^~~~~~~~~~
jumps.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
~~~~~^~~~~~~~~~~~~
jumps.cpp:13:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int q; scanf("%d", &q);
~~~~~^~~~~~~~~~
jumps.cpp:15:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int l, r; scanf("%d", &l, &r);
~~~~~^~~~~~~~~~~~~~