selling_rna.cpp: In function 'int f()':
selling_rna.cpp:32:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if(p->nxt[V[P[i]]] == NULL) return 0;
^
selling_rna.cpp:33:24: warning: array subscript has type 'char' [-Wchar-subscripts]
p = p->nxt[V[P[i]]];
^
selling_rna.cpp:39:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if(s->nxt[V[Q[i]]] == NULL) return 0;
^
selling_rna.cpp:40: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:83:27: warning: array subscript has type 'char' [-Wchar-subscripts]
int vi = V[inp[j]];
^
selling_rna.cpp:92:26: warning: array subscript has type 'char' [-Wchar-subscripts]
int vj = V[inp[j]];
^
selling_rna.cpp:77: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:79: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:100:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %s", P, Q);
~~~~~^~~~~~~~~~~~~~~