记录详情

Accepted

foo.cc: In function 'void add(int)':
foo.cc:13:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |  for(int i=0;i<=sum.length()-1;i++)
      |              ~^~~~~~~~~~~~~~~~
foo.cc: In function 'void dfs(int, int)':
foo.cc:45:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   45 |  for(i=0;i<p[u].son.size();i++)
      |          ~^~~~~~~~~~~~~~~~
foo.cc: In function 'void dfs2(int, int)':
foo.cc:57:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   57 |  for(i=0;i<p[u].son.size();i++)
      |          ~^~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:112:6: warning: statement has no effect [-Wunused-value]
  112 |  for(i;i<=out.length()-1;i++)
      |      ^
foo.cc:112:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  112 |  for(i;i<=out.length()-1;i++)
      |        ~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 6ms 384.0 KiB
#3 Accepted 4ms 384.0 KiB

信息

递交者
类型
自测
题目
P1348 2D 生活在树上
语言
C++
递交时间
2022-04-08 21:11:08
评测时间
2022-04-08 21:11:08
评测机
分数
30
总耗时
13ms
峰值内存
384.0 KiB