segments.cpp: In function 'void read(T&)':
segments.cpp:17:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
17 | register int c;
| ^
segments.cpp: In instantiation of 'void read(T&) [with T = int]':
segments.cpp:32:11: required from here
segments.cpp:17:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
segments.cpp: In instantiation of 'void read(T&) [with T = long long int]':
segments.cpp:35:18: required from here
segments.cpp:17:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
segments.cpp: In function 'int32_t main()':
segments.cpp:93:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
93 | freopen(task ".INP", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
segments.cpp:94:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
94 | freopen(task ".OUT", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~