sparklers.cpp: In function 'bool solve(int, int, int)':
sparklers.cpp:20:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
20 | return dp[l][r] = solve(l - 1, r, s) | solve(l, r + 1, s);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sparklers.cpp: In function 'int main()':
sparklers.cpp:24:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | scanf("%d%d%d", &n, &k, &t);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
sparklers.cpp:25:36: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | for(int i = 0; i < n; ++i) { scanf("%d", X + i); }
| ~~~~~^~~~~~~~~~~~~