foo.cc: In function 'int main()':
foo.cc:20:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < t.length(); i++) vis[t[i]] = true;
~~^~~~~~~~~~~~
foo.cc:20:58: warning: array subscript has type 'char' [-Wchar-subscripts]
for (int i = 0; i < t.length(); i++) vis[t[i]] = true;
^
foo.cc:21:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.length(); i++) vis[s[i]] = true;
~~^~~~~~~~~~~~
foo.cc:21:58: warning: array subscript has type 'char' [-Wchar-subscripts]
for (int i = 0; i < s.length(); i++) vis[s[i]] = true;
^
foo.cc:22:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < min(t.length(), s.length()); i++)
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:25:27: warning: array subscript has type 'char' [-Wchar-subscripts]
p[t[i]].push_back(s[i]);
^
foo.cc:26:29: warning: array subscript has type 'char' [-Wchar-subscripts]
out[t[i]]++;
^
foo.cc:27:28: warning: array subscript has type 'char' [-Wchar-subscripts]
in[s[i]]++;
^
foo.cc:41:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < p[x].size(); i++) {
~~^~~~~~~~~~~~~
foo.cc:46:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (cnt == t.length()) {
~~~~^~~~~~~~~~~~~
foo.cc:47:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < ans.length(); i++)
~~^~~~~~~~~~~~~~
foo.cc:49:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < t.length(); i++)
~~^~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务