| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72159 | 任星宇 | 02长方形的面积 | C++ | Compile Error | 0 MS | 0 KB | 176 | 2024-05-01 11:30:33 |
#include<iostream> using namespace std; int main(){ int a,b,c; long long b; cin>>a>>b; c=a*b cout<<b; return 0; }
Main.cc: In function 'int main()':
Main.cc:5:15: error: conflicting declaration 'long long int b'
long long b;
^
Main.cc:4:11: note: previous declaration as 'int b'
int a,b,c;
^
Main.cc:12:5: error: expected ';' before 'cout'
cout<