coin.cpp: In function 'int main()':
coin.cpp:11:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (i<=j&&j>i+(k-i+1)/2||i>j&&i>j+(k-j)/2+1) check[i][j]=false;
~~~~^~~~~~~~~~~~~~~
coin.cpp:6:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int k; scanf("%d",&k);
~~~~~^~~~~~~~~
coin.cpp:22:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int c; scanf("%d",&c);
~~~~~^~~~~~~~~
coin.cpp:25:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int n,m; scanf("%d %d",&n,&m); printf("%d\n",check[n][m]);
~~~~~^~~~~~~~~~~~~~~