Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
91143 黄梓皓 04圆的面积 C++ Compile Error 0 MS 0 KB 166 2024-09-21 12:07:33

Tests(0/0):


Code:

include<bits/stdc++.h> using namespace std; int main(){ double s,r,pl; pl=3.1415926; scanf("%lf",&r); s=pl*r*r; printf("%.2f",s); return 0; }


Run Info:

Main.cc:1:1: error: 'include' does not name a type
 include
 ^
Main.cc: In function 'int main()':
Main.cc:6:16: error: 'scanf' was not declared in this scope
  scanf("%lf",&r);
                ^
Main.cc:8:17: error: 'printf' was not declared in this scope
  printf("%.2f",s);
                 ^