/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'std::__cxx11::string gethash(int)':
/in/foo.cc:22:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=0;i<go[k1].size();i++)
               ~^~~~~~~~~~~~~~
/in/foo.cc:26:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=0;i<A.size();i++) ans+=A[i];
               ~^~~~~~~~~
/in/foo.cc: In function 'long long int getw(std::__cxx11::string)':
/in/foo.cc:31:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=0;i<K.length();i++) ans=ans*2+K[i]-'0';
               ~^~~~~~~~~~~
/in/foo.cc: In function 'void getans()':
/in/foo.cc:36:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (int i=1;i<=n;i++) go[i].clear(); len=0,now=1;
  ^~~
/in/foo.cc:36:40: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (int i=1;i<=n;i++) go[i].clear(); len=0,now=1;
                                        ^~~
/in/foo.cc:40:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (M[key]) return; M[key]=1;
  ^~
/in/foo.cc:40:22: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if (M[key]) return; M[key]=1;
                      ^
/in/foo.cc:43:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int j=0;j<go[i].size();j++){
                ~^~~~~~~~~~~~~
/in/foo.cc:46:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
  for (int i=1;i<=n;i++) w[i]=(1<<i-1);
                                  ~^~
/in/foo.cc:53:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for (int i=1;i<=len;i++) w[i]=prew[u[i]]|prew[v[i]]; len=0;
   ^~~
/in/foo.cc:53:56: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for (int i=1;i<=len;i++) w[i]=prew[u[i]]|prew[v[i]]; len=0;
                                                        ^~~
/in/foo.cc:62:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (int j=0;j<B[i].size();j++)
                 ~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 925ms 229.875 MiB
#2 Runtime Error 729ms 229.25 MiB
#3 Runtime Error 966ms 229.41 MiB
#4 Runtime Error 966ms 230.625 MiB
#5 Runtime Error 956ms 230.637 MiB
#6 Runtime Error 895ms 230.625 MiB
#7 Runtime Error 949ms 231.008 MiB
#8 Runtime Error 946ms 231.148 MiB
#9 Runtime Error 86ms 230.348 MiB
#10 Runtime Error 73ms 231.242 MiB

信息

递交者
类型
递交
题目
P2041 线图
语言
C++
递交时间
2018-03-23 01:51:32
评测时间
2018-03-23 01:51:32
评测机
分数
0
总耗时
7496ms
峰值内存
231.242 MiB