foo.c:3:5: error: variably modified 'j' at file scope
int 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)提供评测服务