ricehub.cpp: In function 'int check(int)':
ricehub.cpp:24:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
24 | for (re int i=1,j=i+mid-1;j<=n;++i,++j) {
| ^
ricehub.cpp:24:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
24 | for (re int i=1,j=i+mid-1;j<=n;++i,++j) {
| ^
ricehub.cpp: In function 'int main()':
ricehub.cpp:35:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
35 | for (re int i=1;i<=n;++i) a[i]=read();
| ^
ricehub.cpp:36:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
36 | for (re int i=1;i<=n;++i) sum[i]=sum[i-1]+a[i];
| ^
/usr/bin/ld: /tmp/ccxA2i3t.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc7FZ3Xt.o:ricehub.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccxA2i3t.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