Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102379 | 咸澄萱 | 05求长方形的周长和面积 | C++ | Compile Error | 0 MS | 0 KB | 143 | 2024-12-21 15:29:50 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; int c,s; c=2*(n+m); s=n*m cout<<c<<""<<s<<endl; }
Main.cc: In function 'int main()': Main.cc:8:7: error: 'n' was not declared in this scope c=2*(n+m); ^ Main.cc:8:9: error: 'm' was not declared in this scope c=2*(n+m); ^