judge.cpp: In function 'int main()':
judge.cpp:34:27: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
attack[0] = target[0] = 0;
~~~~~~~~~~^~~
judge.cpp:16:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&X);
~~~~~^~~~~~~~~
judge.cpp:17:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&D);
~~~~~^~~~~~~~~
judge.cpp:20:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",buff);
~~~~~^~~~~~~~~~~
judge.cpp:26:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&C);
~~~~~^~~~~~~~~
judge.cpp:28:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",buff);
~~~~~^~~~~~~~~~~