ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:16:9: warning: unused variable 'l' [-Wunused-variable]
int l = 0, r = 0, ans = 1;
^
ricehub.cpp:16:16: warning: unused variable 'r' [-Wunused-variable]
int l = 0, r = 0, ans = 1;
^
ricehub.cpp: In function 'int main()':
ricehub.cpp:37:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &n, &l, &b);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
ricehub.cpp:39:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 0; i < n; i++) scanf("%d", &x[i]);
~~~~~^~~~~~~~~~~~~
/tmp/ccZqNY3u.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccdzkxrg.o:ricehub.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status