Compile Error
foo.cc: In function ‘int main()’: foo.cc:10:30: warning: self-comparison always evaluates to false [-Wtautological-compare] 10 | for (int m; m<m; m++) | ~^~ foo.cc:29:24: error: ‘m’ was not declared in this scope; did you mean ‘tm’? 29 | for (; m > 0; m--) | ^ | tm foo.cc:48:21: error: ‘m’ was not declared in this scope; did you mean ‘tm’? 48 | if (m == 1 || m == 3 || m == 5 || m == 7 || m == 8 || m == 10 || m == 12) | ^ | tm
信息
- 递交者
- 类型
- 递交
- 题目
- A1-4 分支结构练习:今年过去了多少天
- 语言
- C++
- 递交时间
- 2025-08-09 22:05:19
- 评测时间
- 2025-08-09 22:05:19
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes