kartomat.cpp: In function 'int main()':
kartomat.cpp:24:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=0;j<=a.size();j++)
~^~~~~~~~~~
kartomat.cpp:27:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<s.size();i++)
~^~~~~~~~~
kartomat.cpp:29:24: warning: array subscript has type 'char' [-Wchar-subscripts]
cnt[s[i][j]]++;
^
kartomat.cpp:39:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<s.size();i++)
~^~~~~~~~~
kartomat.cpp:41:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s[i].size()<j||s[i].substr(0,j)!=a.substr(0,j))
~~~~~~~~~~~^~