/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'void dfs(std::__cxx11::string)':
/in/foo.cc:47:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if(n.size()<maxlen)
     ~~~~~~~~^~~~~~~
/in/foo.cc:48:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<=n.size();i++)//insert
              ~^~~~~~~~~~
/in/foo.cc:55:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(i==n.size())ce=n[0];
      ~^~~~~~~~~~
/in/foo.cc:66:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<n.size();i++)//erase
              ~^~~~~~~~~
/in/foo.cc:71:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(i==n.size()-1)ce=n[0];
      ~^~~~~~~~~~~~
/in/foo.cc:80:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<n.size();i++)//swap
              ~^~~~~~~~~
/in/foo.cc:81:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int j=0;j<n.size();j++)
               ~^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 5ms 4.078 MiB
#2 Accepted 5ms 4.0 MiB
#3 Accepted 5ms 4.102 MiB
#4 Accepted 6ms 4.0 MiB
#5 Runtime Error 9ms 4.125 MiB
#6 Accepted 5ms 3.941 MiB
#7 Runtime Error 13ms 4.5 MiB
#8 Runtime Error 10ms 4.5 MiB
#9 Runtime Error 8ms 4.594 MiB
#10 Runtime Error 10ms 4.32 MiB

信息

递交者
类型
递交
题目
P1422 教主的难题
语言
C++
递交时间
2017-07-25 15:44:55
评测时间
2017-07-25 15:44:55
评测机
分数
50
总耗时
80ms
峰值内存
4.594 MiB