Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114030 | 向俊麒 | 05求长方形的周长和面积 | C++ | Compile Error | 0 MS | 0 KB | 163 | 2025-03-18 19:48:00 |
#include<iostream> // cin\cout\endl using namespace std; int main(){ int n,m; scanf("%d %d",&n,&m); cout<<(n+m)*2<<" "<<n+m; return 0;
Main.cc: In function 'int main()': Main.cc:8:13: error: expected '}' at end of input return 0; ^ Main.cc:5:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&m); ^