Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87662 汤奕硕 03圆的面积 C++ Compile Error 0 MS 0 KB 236 2024-08-11 10:16:04

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { const double PI=3.1415926; cout<<1**2*PI<<endl; cout<<3**2*PI<<endl; cout<<5**2*PI<<endl; cout<<7**2*PI<<endl; cout<<9**2*PI<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:14: error: invalid type argument of unary '*' (have 'int')
     cout<<1**2*PI<