subsequence.cpp:18:22: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
18 | int n, f[22][1 << 10 - 1][1 << 10 - 1], id[22][1 << 10 - 1][1 << 10 - 1], a[N], k[N], ans, trace[N];
| ~~~^~~
subsequence.cpp:18:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
18 | int n, f[22][1 << 10 - 1][1 << 10 - 1], id[22][1 << 10 - 1][1 << 10 - 1], a[N], k[N], ans, trace[N];
| ~~~^~~
subsequence.cpp:18:56: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
18 | int n, f[22][1 << 10 - 1][1 << 10 - 1], id[22][1 << 10 - 1][1 << 10 - 1], a[N], k[N], ans, trace[N];
| ~~~^~~
subsequence.cpp:18:69: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
18 | int n, f[22][1 << 10 - 1][1 << 10 - 1], id[22][1 << 10 - 1][1 << 10 - 1], a[N], k[N], ans, trace[N];
| ~~~^~~
subsequence.cpp: In function 'int main()':
subsequence.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(task ".inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
subsequence.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(task ".out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
subsequence.cpp:50:33: warning: iteration 512 invokes undefined behavior [-Waggressive-loop-optimizations]
50 | if(mx > f[u][msk][m2]){
| ~~~~~~~~~~~~^
subsequence.cpp:48:30: note: within this loop
48 | for(int msk = 0; msk < (1 << s); msk ++){
| ~~~~^~~~~~~~~~