Main.cpp: In function 'bool go(long long int)':
Main.cpp:27:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
27 | return dp[n] = 1;
Main.cpp: In function 'int main()':
Main.cpp:35:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | scanf("%d %d %d %d", &K, &Q, &D, &M);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:39:31: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | for(int i=0;i<D;i++) scanf("%d", arr+i);
| ~~~~~^~~~~~~~~~~~~
Main.cpp:42:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | scanf("%lld", &n);
| ~~~~~^~~~~~~~~~~~