Compile Error
foo.cc:3:14: error: ‘i’ was not declared in this scope
3 | int sum,duan=i,m,n,l[100086];
| ^
foo.cc: In function ‘int main()’:
foo.cc:5:14: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | cin>>n>>m;
| ^
| yn
foo.cc:5:17: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
5 | cin>>n>>m;
| ^
| tm
foo.cc:7:22: error: ‘l’ was not declared in this scope
7 | cin>>l[i];
| ^
foo.cc:10:24: error: ‘l’ was not declared in this scope
10 | if(sum+l[i]>m){
| ^
信息
- 递交者
- 类型
- 递交
- 题目
- P2012 数列分段
- 语言
- C++
- 递交时间
- 2026-02-09 19:50:18
- 评测时间
- 2026-02-09 19:50:18
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes