knapsack.cpp: In function 'int main()':
knapsack.cpp:25:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
25 | for(register int i = 1; i <= n; ++i){
| ^
knapsack.cpp:30:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
30 | for(register int j = 1; j <= a[i].k; ++j){
| ^
knapsack.cpp:37:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
37 | for(register int i = 1; i <= 2001; ++i){
| ^
knapsack.cpp:41:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
41 | for(register int i = 1; i <= tot; ++i){
| ^
knapsack.cpp:42:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
42 | for(register int j = s; j >= b[i][0]; --j){
| ^