Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123311 唐俊逸 05求长方形的周长和面积 C++ Compile Error 0 MS 0 KB 734 2025-06-28 18:47:20

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf()) #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int m,n; cin>>m>>n; cout<<(m+n)*2<<" "<<m*n;#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf()) #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double r; cin>>r; printf("%.4f",4.0/3*3.1415926*r*r*r ); return 0; }


Run Info:

Main.cc:9:29: error: stray '#' in program
     cout<<(m+n)*2<<" "<  // cin\cout\endl
                             ^
Main.cc: In function 'int main()':
Main.cc:9:30: error: 'include' was not declared in this scope
     cout<<(m+n)*2<<" "<  // cin\cout\endl
                              ^
Main.cc:9:46: error: expected primary-expression before '>' token
     cout<<(m+n)*2<<" "<  // cin\cout\endl
                                              ^
Main.cc:13:1: error: expected primary-expression before 'using'
 using namespace std;
 ^
Main.cc:14:11: error: a function-definition is not allowed here before '{' token
 int main(){
           ^
Main.cc:19:1: error: expected '}' at end of input
 }
 ^