mate.cpp: In function 'int main()':
mate.cpp:19:19: warning: array subscript has type 'char' [-Wchar-subscripts]
ret[A[i+1]]++;
^
mate.cpp:20:56: warning: array subscript has type 'char' [-Wchar-subscripts]
for(int j = 0; j < 26; ++j) if(ret[j]) alp[A[i]][j].emplace_back(i, ret[j]);
^
mate.cpp:16:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", A), n = strlen(A);
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
mate.cpp:27:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &m);
~~~~~^~~~~~~~~~
mate.cpp:29:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int d; scanf("%d %s", &d, A);
~~~~~^~~~~~~~~~~~~~~~