Compile Error
foo.cc: In function 'int main()': foo.cc:6:10: error: expected unqualified-id before numeric constant int n,m,1; ^ foo.cc:7:13: error: 'i' was not declared in this scope cin>>n>>m>>i; ^ foo.cc:8:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for(int i;i=2;i<=m) ~^~ foo.cc:8:17: warning: for increment expression has no effect [-Wunused-value] for(int i;i=2;i<=m) ~^~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
信息
- 递交者
- 类型
- 递交
- 题目
- 2-2 约瑟夫问题
- 比赛
- 2020苏青奥赛集训营(2021-3-21课后作业)
- 语言
- C++
- 递交时间
- 2021-03-22 22:06:38
- 评测时间
- 2021-03-22 22:06:38
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes