Compile Error
foo.cc: In function ‘int main()’:
foo.cc:25:9: error: ‘i’ was not declared in this scope
25 | for(i=1;i<=1005;i++)
| ^
foo.cc:29:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
29 | for(int i=0;i<g[mx].size();i++)
| ~^~~~~~~~~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P3100 找树根和孩子
- 语言
- C++
- 递交时间
- 2026-05-02 13:35:19
- 评测时间
- 2026-05-02 13:35:19
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes