0 Compile Error
foo.cc: In function ‘int main()’: foo.cc:5:5: error: ‘inta’ was not declared in this scope; did you mean ‘int’? 5 | inta,b,c; | ^~~~ | int foo.cc:5:10: error: ‘b’ was not declared in this scope 5 | inta,b,c; | ^ foo.cc:5:12: error: ‘c’ was not declared in this scope 5 | inta,b,c; | ^ foo.cc:6:10: error: ‘a’ was not declared in this scope 6 | cin>>a>>b; | ^
代码
#include<iostream>
using namespace std;
int main()
{
inta,b,c;
cin>>a>>b;
c=a*b;
cout<<"总的棵树:"<<c;
return 0;
}
信息
- 递交者
- 题目
- P24 练6.1 植树造林
- 语言
- C++14(O2)
- 代码长度
- 130 Bytes
- 递交时间
- 2025-5-6 21:47:58
- 评测时间
- 2025-5-6 21:47:59
- 分数
- 0