Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88728 欧阳俊懿 03圆的面积 C++ Compile Error 0 MS 0 KB 476 2024-08-20 18:06:15

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { double a,b,c,d,e; const double y=3.1415926; cin>>a>>b>>c>>d>>e; cout<<y*a*a<<endl; cout<<y*b*b<<endl; cout<<y*c*c<<endl; cout<<y*d*d<<endl; cout<<y*e*e<<endl; return 0; } #include<iostream> using namespace std; int main() { double a,b,c,d,e; const double y=3.1415926; cin>>a>>b>>c>>d>>e; cout<<y*a*a<<endl; cout<<y*b*b<<endl; cout<<y*c*c<<endl; cout<<y*d*d<<endl; cout<<y*e*e<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:17:5: error: redefinition of 'int main()'
 int main()
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main()
     ^