blocks.cpp: In function 'void bui()':
blocks.cpp:11:44: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
11 | f[j][i]=min(f[j][i-1],f[j+(1<<i-1)][i-1]);
| ~^~
blocks.cpp: In function 'int main()':
blocks.cpp:34:15: error: 's' was not declared in this scope
34 | while(s.size()>0&&a[d.top()][0]<=a[i][0]) d.pop();
| ^
blocks.cpp:25:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | freopen("cc.inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
blocks.cpp:26:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | freopen("cc.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~