Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
106889 田珂莹 04圆的面积 C++ Compile Error 0 MS 0 KB 163 2025-01-17 09:21:36

Tests(0/0):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ double r,pi=3.1314926; scanf("%lf",&r); printf("%.2lf",pi*r*r); return 0;


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:13: error: expected '}' at end of input
     return 0;
             ^
Main.cc:6:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%lf",&r);
                   ^