selling_rna.cpp: In function 'int f()':
selling_rna.cpp:33:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if(p->nxt[V[P[i]]] == NULL) return 0;
^
selling_rna.cpp:34:24: warning: array subscript has type 'char' [-Wchar-subscripts]
p = p->nxt[V[P[i]]];
^
selling_rna.cpp:40:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if(s->nxt[V[Q[i]]] == NULL) return 0;
^
selling_rna.cpp:41:24: warning: array subscript has type 'char' [-Wchar-subscripts]
s = s->nxt[V[Q[i]]];
^
selling_rna.cpp: In function 'int main()':
selling_rna.cpp:84:27: warning: array subscript has type 'char' [-Wchar-subscripts]
int vi = V[inp[j]];
^
selling_rna.cpp:93:26: warning: array subscript has type 'char' [-Wchar-subscripts]
int vj = V[inp[j]];
^
selling_rna.cpp:78:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
~~~~~^~~~~~~~~~~~~~~~
selling_rna.cpp:80:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", inp); int ln = strlen(inp);
~~~~~^~~~~~~~~~~
selling_rna.cpp:101:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %s", P, Q);
~~~~~^~~~~~~~~~~~~~~