记录详情

Wrong Answer

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:24:27: warning: array subscript has type 'char' [-Wchar-subscripts]
                     p[t[i]].push_back(s[i]);
                           ^
foo.cc:25:29: warning: array subscript has type 'char' [-Wchar-subscripts]
                     out[t[i]]++;
                             ^
foo.cc:26:28: warning: array subscript has type 'char' [-Wchar-subscripts]
                     in[s[i]]++;
                            ^
foo.cc:40:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < p[x].size(); i++) {
                         ~~^~~~~~~~~~~~~
foo.cc:45:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (cnt >= t.length()) {
         ~~~~^~~~~~~~~~~~~
foo.cc:46: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++)
                         ~~^~~~~~~~~~~~
foo.cc:50:21: warning: NULL used in arithmetic [-Wpointer-arith]
    if (str[t[i]] == NULL) {RES = "0"; break;}
                     ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Wrong Answer Read fdeahigbcj, expect 0. 2ms 340.0 KiB
#3 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
病毒(virus)
语言
C++
递交时间
2021-08-19 12:32:57
评测时间
2021-08-19 12:32:57
评测机
分数
70
总耗时
6ms
峰值内存
384.0 KiB