Main.cpp: In function 'int main()':
Main.cpp:24:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
24 | for(register int i = 1; i <= r; ++i){
| ^
Main.cpp:25:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
25 | for(register int j = 1; j <= s; ++j){
| ^
Main.cpp:35:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
35 | for(register int x1 = 0; x1 <= r; ++x1){
| ^~
Main.cpp:36:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
36 | for(register int x2 = x1; x2 <= r; ++x2){
| ^~
Main.cpp:33:12: warning: unused variable 'sm' [-Wunused-variable]
33 | long long sm(0), cost(0), next_sm(0), cur_sm(0), cur_cost(inf), prev_cost(inf), next_cost(inf);
| ^~
Main.cpp:33:19: warning: unused variable 'cost' [-Wunused-variable]
33 | long long sm(0), cost(0), next_sm(0), cur_sm(0), cur_cost(inf), prev_cost(inf), next_cost(inf);
| ^~~~