Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:5:48: error: 'R' was not declared in this scope long long a[100010]; int N,Q;scanf("%d%d",&N,&R); a[0]=0; for(int i=1;i<=N;i++){scanf("%lld",&a[i]); a[i]+=a[i-1];}//shu'ru ^ /in/foo.cc:6:13: error: 'l' was not declared in this scope while(Q--){l,r;scanf("%d%d",&l,&r);cout<<a[r]-a[l-1];}//shu'chu ^ /in/foo.cc:6:15: error: 'r' was not declared in this scope while(Q--){l,r;scanf("%d%d",&l,&r);cout<<a[r]-a[l-1];}//shu'chu ^
信息
- 递交者
- 类型
- 自测
- 题目
- 【模板】序列前缀和
- 语言
- C++
- 递交时间
- 2021-06-11 22:02:47
- 评测时间
- 2021-06-11 22:02:47
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes