selling_rna.cpp: In constructor 'rolling_hash::rolling_hash(std::__cxx11::string&)':
selling_rna.cpp:16:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<=s.size();i++){
~^~~~~~~~~~
selling_rna.cpp: In function 'int main()':
selling_rna.cpp:59:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(rh[j].get(0,p[i].size())==a&&
~~~~~~~~~~~~~~~~~~~~~~~~^~~
selling_rna.cpp:60:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
rh[j].get(s[j].size()-q[i].size(),s[j].size())==b)cnt++;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
selling_rna.cpp:45:15: 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);
~~~~~^~~~~~~~~~~~~~
selling_rna.cpp:48:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",S);
~~~~~^~~~~~~~
selling_rna.cpp:53:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",S);p[i]=S;
~~~~~^~~~~~~~
selling_rna.cpp:54:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",S);q[i]=S;
~~~~~^~~~~~~~