foo.cc: In function 'int main()':
foo.cc:21:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < min(t.length(), s.length()); i++)
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:23:27: warning: array subscript has type 'char' [-Wchar-subscripts]
p[t[i]].push_back(s[i]);
^
foo.cc:24:29: warning: array subscript has type 'char' [-Wchar-subscripts]
out[t[i]]++;
^
foo.cc:25:28: warning: array subscript has type 'char' [-Wchar-subscripts]
in[s[i]]++;
^
foo.cc:26:29: warning: array subscript has type 'char' [-Wchar-subscripts]
vis[t[i]] = vis[s[i]] = flag = true;
^
foo.cc:26:41: warning: array subscript has type 'char' [-Wchar-subscripts]
vis[t[i]] = vis[s[i]] = flag = true;
^
foo.cc:44:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < p[x].size(); i++) {
~~^~~~~~~~~~~~~
foo.cc:49:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (cnt >= t.length()) {
~~~~^~~~~~~~~~~~~
foo.cc:50:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < ans.length(); i++)
~~^~~~~~~~~~~~~~
foo.cc:52:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < t.length(); i++)
~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务