foo.c:3:1: error: unknown type name 'bool'; did you mean '_Bool'?
bool j[MAX]={0};
^~~~
_Bool
foo.c:3:6: error: variably modified 'j' at file scope
bool j[MAX]={0};
^
foo.c:4:5: error: variably modified 's' at file scope
int s[MAX]={0};
^
foo.c: In function 'main':
foo.c:8:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&N);
^~~~~~~~~~~~~~
foo.c:10:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^~~~~~~~~~~~~~
foo.c:17:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&M);
^~~~~~~~~~~~~~
foo.c:19:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&l,&r);
^~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务