Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115984 周博涵 04球的体积 C++ Compile Error 0 MS 0 KB 168 2025-04-05 18:13:08

Tests(0/0):


Code:

#include <iostream> #include <cstdio> using namespace std; int main(){ float r,vq; scanf("%f",&r); vq=4/3.0*3.1415926*r*r*r; printf("%.4f",v); }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:19: error: 'v' was not declared in this scope
     printf("%.4f",v);
                   ^
Main.cc:6:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%f",&r);
                   ^