ricehub.cpp: In function 'int main()':
ricehub.cpp:40:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | scanf("%d%d", &n, &l);
| ~~~~~^~~~~~~~~~~~~~~~
ricehub.cpp:43:35: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
43 | for (int i = 0; i < n; i++) scanf("%d", &x[i]), tmp.insert(x[i]);
| ~~~~~^~~~~~~~~~~~~
ricehub.cpp:45:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | scanf("%d", &tmp_b);
| ~~~~~^~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccGZAiVK.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccPLboJM.o:ricehub.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccGZAiVK.o: in function `main':
grader.cpp:(.text.startup+0xae): undefined reference to `besthub(int, int, int*, long long)'
collect2: error: ld returned 1 exit status