glo.cpp: In function 'int main()':
glo.cpp:19:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
19 | for(register int i = 1; i <= n; ++i){
| ^
glo.cpp:27:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
27 | for(register int i = 1; i <= n; ++i){
| ^
glo.cpp:37:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
37 | for(register int i = 1; i <= n; ++i) if(dp[i] ^ inf) ans = i;
| ^
glo.cpp:42:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
42 | for(register int i = n; i >= 1; --i){
| ^
glo.cpp:49:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
49 | for(register int i = 1; i <= n; ++i){
| ^
glo.cpp:58:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
58 | for(register int i = ans + 1; i <= n; ++i) if(dp[i] ^ inf) ans = max(ans, i);
| ^