Compile Error
foo.cc: In function 'int main()': foo.cc:9:10: error: expected unqualified-id before numeric constant 9 | int n,r,1=0,s=0; | ^ foo.cc:13:5: error: 's' was not declared in this scope 13 | s=s+r*pow(2,i); | ^ foo.cc:13:17: error: 'i' was not declared in this scope 13 | s=s+r*pow(2,i); | ^ foo.cc:17:8: error: 's' was not declared in this scope 17 | cout<<s; | ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1139 二进制转10进制
- 语言
- C++
- 递交时间
- 2022-01-29 12:34:10
- 评测时间
- 2022-01-29 12:34:10
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes