Compile Error
foo.cc: In function 'int main()': foo.cc:5:7: error: expected initializer before '<=' token int a<=20,b; ^~ foo.cc:6:7: error: 'a' was not declared in this scope cin>>a>>endl; ^ foo.cc:7:11: error: 'b' was not declared in this scope if(a<=2) b=a*10.5; ^ foo.cc:8:7: error: 'b' was not declared in this scope else b=2*10.5+(a-2)*4; ^ foo.cc:9:8: error: 'b' was not declared in this scope cout<<b<<endl; ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 比赛
- 初二开学分层赛
- 语言
- C++
- 递交时间
- 2021-09-01 13:57:31
- 评测时间
- 2021-09-01 13:57:31
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes