blocks.cpp: In function 'int32_t main()':
blocks.cpp:32:13: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
32 | f[i][j-1&1]+=a[i];
| ~^~
blocks.cpp:35:15: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
35 | f[i][j-1&1]=min(f[i][j-1&1],f[sk.top()][j-1&1]-a[sk.top()]+a[i]);
| ~^~
blocks.cpp:35:31: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
35 | f[i][j-1&1]=min(f[i][j-1&1],f[sk.top()][j-1&1]-a[sk.top()]+a[i]);
| ~^~
blocks.cpp:35:50: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
35 | f[i][j-1&1]=min(f[i][j-1&1],f[sk.top()][j-1&1]-a[sk.top()]+a[i]);
| ~^~
blocks.cpp:36:37: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
36 | s.erase(s.find(f[sk.top()][j-1&1]));
| ~^~
blocks.cpp:39:22: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
39 | s.insert(f[i][j-1&1]);
| ~^~
blocks.cpp:21:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | freopen(task".inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
blocks.cpp:22:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | freopen(task".out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~