match.cpp: In function 'void solve(int, int)':
match.cpp:33:23: warning: array subscript has type 'char' [-Wchar-subscripts]
for (i = pre[s[st]][dr]; i >= st + 1 ; i = pre[s[st]][i-1]){
^
match.cpp:33:57: warning: array subscript has type 'char' [-Wchar-subscripts]
for (i = pre[s[st]][dr]; i >= st + 1 ; i = pre[s[st]][i-1]){
^
match.cpp: In function 'int main()':
match.cpp:53:11: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets (s+1 , 100010 , fin);
~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:936:0,
from /usr/include/c++/7/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:46,
from match.cpp:1:
In function 'char* fgets(char*, int, FILE*)',
inlined from 'int main()' at match.cpp:53:11:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:261:58: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^