/ Vijos /

记录详情

Time Exceeded

foo.cc: In function ‘void build()’:
foo.cc:60:39: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   60 |                 for(register int i=0;i<=temp.size();++i)
      |                                      ~^~~~~~~~~~~~~
foo.cc:63:47: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   63 |                         register int r=temp[(i>temp.size()-1?0:i)]-'0';
      |                                              ~^~~~~~~~~~~~~~
foo.cc:69:73: warning: comparison of integer expressions of different signedness: ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} and ‘long long int’ [-Wsign-compare]
   69 |                                 if(new_string.empty()||new_string.size()>max_len)//||new_string.size()!=temp.size()+1)
      |                                                        ~~~~~~~~~~~~~~~~~^~~~~~~~
foo.cc:83:29: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   83 |                         if(i==temp.size())
      |                            ~^~~~~~~~~~~~~
foo.cc:85:49: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   85 |                         for(register int j=i+1;j<temp.size();++j)
      |                                                ~^~~~~~~~~~~~
foo.cc:89:54: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
   89 |                                 register int wt=(x&y)+(x^y)<<1;
      |                                                 ~~~~~^~~~~~
foo.cc:108:47: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  108 |                         for(register int i=0;i<temp.size();++i)
      |                                              ~^~~~~~~~~~~~
foo.cc:112:57: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  112 |                                 register int r=temp[(i+1>temp.size()-1?0:i+1)]-'0';
      |                                                      ~~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 6ms 3.523 MiB
#2 Accepted 6ms 3.562 MiB
#3 Accepted 5ms 3.523 MiB
#4 Accepted 5ms 3.562 MiB
#5 Accepted 6ms 3.566 MiB
#6 Accepted 51ms 5.145 MiB
#7 Accepted 233ms 10.895 MiB
#8 Accepted 84ms 5.789 MiB
#9 Accepted 838ms 39.453 MiB
#10 Time Exceeded ≥1069ms ≥47.152 MiB

信息

递交者
类型
递交
题目
P1422 教主的难题
语言
C++
递交时间
2024-07-14 08:31:05
评测时间
2024-07-14 08:31:05
评测机
分数
90
总耗时
≥2308ms
峰值内存
≥47.152 MiB