| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 65156 | 万诗烨 | 05求长方形的周长和面积 | C++ | Compile Error | 0 MS | 0 KB | 153 | 2024-01-24 10:56:18 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; int zc=(a+b)*2 int s=a*b cout<<zc<<" "<<s; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:5: error: expected ',' or ';' before 'int'
int s=a*b
^
Main.cc:6:6: warning: unused variable 'zc' [-Wunused-variable]
int zc=(a+b)*2
^