Compile Error
foo.cc: In function ‘int fact(int)’: foo.cc:6:17: error: ‘ans’ was not declared in this scope; did you mean ‘abs’? 6 | ans=1; | ^~~ | abs foo.cc:7:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’? 7 | ans=n*fact(n-1); | ^~~ | abs
信息
- 递交者
- 类型
- 自测
- 题目
- 3-3 炒股发财
- 语言
- C++
- 递交时间
- 2024-09-19 16:45:13
- 评测时间
- 2024-09-19 16:45:13
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes