ricehub.cpp: In function 'int main()':
ricehub.cpp:43:32: warning: operation on 'left' may be undefined [-Wsequence-point]
43 | spesa+=risaie[left]-risaie[(++left+right)/2];
| ^~~~~~
ricehub.cpp:43:32: warning: operation on 'left' may be undefined [-Wsequence-point]
ricehub.cpp:33:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
33 | freopen("input.txt","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
ricehub.cpp:34:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
34 | freopen("output.txt","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/cc9cq8bV.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/cc9EK7pi.o:ricehub.cpp:(.text.startup+0x0): first defined here
/tmp/cc9cq8bV.o: In function `main':
grader.cpp:(.text.startup+0x9a): undefined reference to `besthub(int, int, int*, long long)'
collect2: error: ld returned 1 exit status