Compile Error

/in/foo.cc: In function 'void dfs(int, int, int)':
/in/foo.cc:9:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    9 |     for(i=0;i<g[u].size();i++)
      |             ~^~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:18:13: error: 'x' was not declared in this scope
   18 |     for(i=1,x,y;i<n;i++)
      |             ^
/in/foo.cc:18:15: error: 'y' was not declared in this scope; did you mean 'yn'?
   18 |     for(i=1,x,y;i<n;i++)
      |               ^
      |               yn

信息

递交者
类型
递交
题目
P2888 树上漫步2025.3GESP6级T1
语言
C++
递交时间
2026-02-26 13:32:08
评测时间
2026-02-26 13:32:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes