foo.cc: In function 'int isExist(int, int)':
foo.cc:11:46: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
11 | if(p!=NULL&&p-&str[bgn]==0&&strlen(word[i])<=end-bgn+1){
| ~~~~~~~~~~~~~~~^~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%d%d",&p,&cut);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:20:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
20 | scanf("%s",tmp);
| ~~~~~^~~~~~~~~~
foo.cc:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%d",&s);
| ~~~~~^~~~~~~~~
foo.cc:25:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%s",word[i]);
| ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务