blocks.cpp: In function 'int main()':
blocks.cpp:39:90: error: 'class std::stack<std::pair<int, long long int> >' has no member named 'pop_back'
39 | update(1, 1, n, s.top().first, INF), minF = min(minF, s.top().second), s.pop_back();
| ^~~~~~~~
blocks.cpp:42:15: error: 'class std::stack<std::pair<int, long long int> >' has no member named 'push_back'
42 | s.push_back({i, minF});
| ^~~~~~~~~
blocks.cpp:26:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | freopen("blocks.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
blocks.cpp:27:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | freopen("blocks.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~