Main.cpp: In function 'int main()':
Main.cpp:46:24: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
46 | if(x >= 0) a0[x]++;
| ~~~~^
Main.cpp:47:25: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
47 | if(x < 0) a1[x+k]++;
| ~~~~~~^
Main.cpp:42:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | scanf("%d %d %d %d", &k, &q, &d, &m);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:45:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | scanf("%d", &x);
| ~~~~~^~~~~~~~~~
Main.cpp:52:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
52 | scanf("%lld", &goal);
| ~~~~~^~~~~~~~~~~~~~~