/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In constructor 'hnode::hnode()':
/in/foo.cc:18:6: warning: 'hnode::step' will be initialized after [-Wreorder]
  int step;
      ^~~~
/in/foo.cc:16:9: warning:   'std::__cxx11::string hnode::s' [-Wreorder]
  string s;
         ^
/in/foo.cc:19:2: warning:   when initialized here [-Wreorder]
  hnode():next(NULL),step(99),s(""){}
  ^~~~~
/in/foo.cc:19:34: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
  hnode():next(NULL),step(99),s(""){}
                                  ^
/in/foo.cc: In function 'int add_node(std::__cxx11::string)':
/in/foo.cc:85:22: warning: NULL used in arithmetic [-Wpointer-arith]
   if ( h[k]->next == NULL)
                      ^~~~
/in/foo.cc: In function 'bool search(std::__cxx11::string, std::__cxx11::string, int)':
/in/foo.cc:101:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while (j<s.length() && i<s1.length())
         ~^~~~~~~~~~~
/in/foo.cc:101:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while (j<s.length() && i<s1.length())
                         ~^~~~~~~~~~~~
/in/foo.cc:107:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if (i<s1.length()) return false;
      ~^~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:140:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(j=0; j<s1.length(); ++j)
             ~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 1.0 MiB
#2 Wrong Answer 3ms 1.074 MiB
#3 Accepted 3ms 1.094 MiB
#4 Wrong Answer 3ms 1.0 MiB
#5 Wrong Answer 4ms 1.121 MiB

信息

递交者
类型
递交
题目
P1124 字串变换
语言
C++
递交时间
2017-09-05 21:43:31
评测时间
2017-09-05 21:43:31
评测机
分数
10
总耗时
19ms
峰值内存
1.121 MiB