bajka.cpp: In function 'int main()':
bajka.cpp:20:21: warning: array subscript has type 'char' [-Wchar-subscripts]
20 | pre[i] = lst[s[i]], lst[s[i]] = i;
| ~~~^
bajka.cpp:20:32: warning: array subscript has type 'char' [-Wchar-subscripts]
20 | pre[i] = lst[s[i]], lst[s[i]] = i;
| ~~~^
bajka.cpp:23:21: warning: array subscript has type 'char' [-Wchar-subscripts]
23 | nxt[i] = lst[s[i]], lst[s[i]] = i;
| ~~~^
bajka.cpp:23:32: warning: array subscript has type 'char' [-Wchar-subscripts]
23 | nxt[i] = lst[s[i]], lst[s[i]] = i;
| ~~~^
bajka.cpp:14:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
bajka.cpp:15:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%s", s);
| ~~~~~^~~~~~~~~
bajka.cpp:16:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf("%s", t);
| ~~~~~^~~~~~~~~