/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'bool compare(int, int, std::__cxx11::string)':
/in/foo.cc:10:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0; i<tool.size()-(y-x); ++i) {
               ~^~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int ELFhash(std::__cxx11::string)':
/in/foo.cc:23:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while(i<s.size()) {
        ~^~~~~~~~~
/in/foo.cc: In function 'bool search(int, std::__cxx11::string)':
/in/foo.cc:41:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0; i<s.size(); ++i)
           ~^~~~~~~~~
/in/foo.cc:44:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(j=1; j<s.size(); ++j)
           ~^~~~~~~~~
/in/foo.cc:50:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while(j<s.size()) {
        ~^~~~~~~~~
/in/foo.cc:51:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while(i<s.size()&&(s[i]=='C'||s[i]=='O'||s[i]=='W')) i++;
         ~^~~~~~~~~
/in/foo.cc:53:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while(j<s.size()&&s[j]!='C'&&s[j]!='O'&&s[j]!='W') j++;
         ~^~~~~~~~~
/in/foo.cc:66:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int j=0; j<s.size(); ++j)
               ~^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 200.0 KiB
#2 Accepted 1ms 204.0 KiB
#3 Accepted 1ms 208.0 KiB
#4 Accepted 1ms 328.0 KiB
#5 Accepted 1ms 340.0 KiB
#6 Accepted 31ms 332.0 KiB
#7 Accepted 2ms 332.0 KiB
#8 Accepted 25ms 332.0 KiB
#9 Accepted 132ms 392.0 KiB
#10 Accepted 138ms 324.0 KiB

信息

递交者
类型
递交
题目
P1031 奶牛加密术
语言
C++
递交时间
2019-10-23 09:37:20
评测时间
2019-10-23 09:37:21
评测机
分数
100
总耗时
337ms
峰值内存
392.0 KiB