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:16:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
16 | for(register int i(N - 1); i >= 1; --i) cost[i] = max(cost[i+1], pref[i] - A[i].first);
| ^
art.cpp:18:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
18 | for(register int i(1); i <= N; ++i) ans = max(ans, cost[i] - (pref[i-1] - A[i].first));
| ^