prosjek.cpp: In function 'int main()':
prosjek.cpp:16:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
16 | for(register int i(1); i <= N; ++i) cin >> B[i], B[i] *= i;
| ^
prosjek.cpp:17:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
17 | for(register int i = 1; i <= N; ++i){
| ^
prosjek.cpp:20:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
20 | for(register int i = 1; i <= N; ++i){
| ^