ricehub.cpp: In member function 'void st::update(ll, ll)':
ricehub.cpp:13:13: warning: statement has no effect [-Wunused-value]
13 | for(a; a<cad.size(); a+=(a&-a)) cad[a]+=b;
| ^
ricehub.cpp:13:17: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for(a; a<cad.size(); a+=(a&-a)) cad[a]+=b;
| ~^~~~~~~~~~~
ricehub.cpp: In member function 'll st::query(ll)':
ricehub.cpp:18:13: warning: statement has no effect [-Wunused-value]
18 | for(a; a>0; a-=(a&-a)) s+=cad[a];
| ^
/usr/bin/ld: /tmp/ccC3EYL4.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccOjkQi0.o:ricehub.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccC3EYL4.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