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