Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:5:7: error: 'n' was not declared in this scope
cin>>n;
^
/in/foo.cc:10:3: error: 'sum' was not declared in this scope
sum+=fenzi/fenmu;
^~~
/in/foo.cc:15:8: error: 'sum' was not declared in this scope
cout<<sum;
^~~
/in/foo.cc:4:8: warning: unused variable 'nsum' [-Wunused-variable]
int i,nsum=0,fenzi,fenmu,t;
^~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1054 数列求和
- 语言
- C++
- 递交时间
- 2022-01-26 09:56:12
- 评测时间
- 2022-01-26 09:56:12
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes