sculpture.cpp: In function 'bool check(ll, int)':
sculpture.cpp:3:38: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
3 | #define submask(i, j) ((i ^ j) == (i - j))
......
20 | if (submask((f[i] - f[j]) >> index, mask >> index))
| ~~~~~~~~~~~
sculpture.cpp:20:13: note: in expansion of macro 'submask'
20 | if (submask((f[i] - f[j]) >> index, mask >> index))
| ^~~~~~~
sculpture.cpp:3:38: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
3 | #define submask(i, j) ((i ^ j) == (i - j))
......
32 | if (submask((f[i] - f[j]) >> index, mask >> index))
| ~~~~~~~~~~~
sculpture.cpp:32:13: note: in expansion of macro 'submask'
32 | if (submask((f[i] - f[j]) >> index, mask >> index))
| ^~~~~~~
sculpture.cpp: In function 'int main()':
sculpture.cpp:47:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
47 | freopen(TASK".INP", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
sculpture.cpp:48:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
48 | freopen(TASK".OUT", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~