/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int hsh(int)':
/in/foo.cc:10:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=0; i<t[x].size(); i++)
                ~^~~~~~~~~~~~
/in/foo.cc:14:12: error: 's' was not declared in this scope
   sz[x] += s[v]; 
            ^
/in/foo.cc:18:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=0; i<h.size(); i++) ansx = (ansx + (h[i]+1)*(i+1))%100000007;
                ~^~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:38:15: error: 'dfs' was not declared in this scope
   dfs(root, -1);
               ^
/in/foo.cc:42:6: warning: unused variable 'num' [-Wunused-variable]
  int num = 1;
      ^~~

信息

递交者
类型
递交
题目
P1683 有根树的同构问题
语言
C++
递交时间
2020-07-21 20:39:57
评测时间
2020-07-21 20:39:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes