Main.cpp: In function 'bool go(long long int)':
Main.cpp:22:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
22 | return dp[n] = 1;
Main.cpp:30:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
30 | return dp[n] = 1;
Main.cpp: In function 'int main()':
Main.cpp:38:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d %d %d %d", &K, &Q, &D, &M);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:41:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
41 | scanf("%d", &x);
| ~~~~~^~~~~~~~~~
Main.cpp:46:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
46 | scanf("%lld", &n);
| ~~~~~^~~~~~~~~~~~