Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
105002 | 叶又铭 | 03圆的面积 | C++ | Compile Error | 0 MS | 0 KB | 1784 | 2025-01-11 20:49:19 |
#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 a=1; int s=3; int d=5; int f=7; int g=9; float h=3.1415926; cout<<a*a*h<<endl << s*s*h<<endl << d*d*h<<endl << f*f*h<<endl << g*g*h<<endl; return 0; }#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 a=1; int s=3; int d=5; int f=7; int g=9; float h=3.1415926; cout<<a*a*h<<endl << s*s*h<<endl << d*d*h<<endl << f*f*h<<endl << g*g*h<<endl; return 0; }#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 a=1; int s=3; int d=5; int f=7; int g=9; float h=3.1415926; cout<<a*a*h<<endl << s*s*h<<endl << d*d*h<<endl << f*f*h<<endl << g*g*h<<endl; return 0; }#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 a=1; int s=3; int d=5; int f=7; int g=9; float h=3.1415926; cout<<a*a*h<<endl << s*s*h<<endl << d*d*h<<endl << f*f*h<<endl << g*g*h<<endl; return 0; }
Main.cc:16:2: error: stray '#' in program }#include // cin\cout\endl ^ Main.cc:31:2: error: stray '#' in program }#include // cin\cout\endl ^ Main.cc:46:2: error: stray '#' in program }#include // cin\cout\endl ^ Main.cc:16:3: error: 'include' does not name a type }#include // cin\cout\endl ^ Main.cc: In function 'int main()': Main.cc:22:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:7:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:31:3: error: 'include' does not name a type }#include // cin\cout\endl ^ Main.cc: In function 'int main()': Main.cc:37:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:7:5: note: 'int main()' previously defined here int main(){ ^ Main.cc: At global scope: Main.cc:46:3: error: 'include' does not name a type }#include // cin\cout\endl ^ Main.cc: In function 'int main()': Main.cc:52:5: error: redefinition of 'int main()' int main(){ ^ Main.cc:7:5: note: 'int main()' previously defined here int main(){ ^