art.cpp: In function 'int main()':
art.cpp:12:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
12 | for(register int i(1); i <= N; ++i) cin >> A[i].first >> A[i].second;
| ^
art.cpp:14:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
14 | for(register int i(1); i <= N; ++i) pref[i] = pref[i-1] + A[i].second;
| ^
art.cpp:15:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
15 | for(register int i(N); i >= 1; --i) cost[i] = max(cost[i+1], pref[i] - A[i].first);
| ^
art.cpp:17:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
17 | for(register int i(1); i <= N; ++i) ans = max(ans, cost[i] - (pref[i-1] - A[i].first));
| ^