knapsack.cpp: In function 'int main()':
knapsack.cpp:22:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
22 | for(register int i = 1; i <= n; ++i){
| ^
knapsack.cpp:27:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
27 | for(register int i = 1; i <= 2001; ++i){
| ^
knapsack.cpp:31:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
31 | for(register int i = 1; i <= n; ++i){
| ^
knapsack.cpp:32:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
32 | for(register int ki = 1; ki <= a[i].k; ++ki)
| ^~
knapsack.cpp:33:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
33 | for(register int j = s; j >= a[i].w; --j){
| ^