ricehub.cpp: In function 'void read()':
ricehub.cpp:15:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %lld", &r, &l, &b);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
ricehub.cpp:17:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &x[i]);
~~~~~^~~~~~~~~~~~~~~
/tmp/ccYE3n4t.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/cccbDrxa.o:ricehub.cpp:(.text.startup+0x0): first defined here
/tmp/ccYE3n4t.o: In function `main':
grader.cpp:(.text.startup+0x92): undefined reference to `besthub(int, int, int*, long long)'
collect2: error: ld returned 1 exit status