Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
110087 | 邹金行 | 05求长方形的周长和面积 | C++ | Compile Error | 0 MS | 0 KB | 110 | 2025-02-14 15:20:41 |
#include<bits/stdc++.h> using namespace std; int maina(){ int a,b; cin>>a>>b; cout<<(a+b)*2<<a*b; }
Main.cc: In function 'int maina()': Main.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status