编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#1678 #994. 小关的需求 Compile Error 0 0 ms 0 K C / 162 B t330026199 2023-10-15 16:41:57
显示原始代码
#include <stdio.h>
int main() {
    int R;
    scanf("%d", R);
    float pine = 3.14;
    double float v = 4 / 3 * pine * R * R * R;
    printf("%.5lf", v);
    return 0;
}

编译信息

/sandbox/1/a.c:4:16: warning: format specifies type 'int *' but the argument has type 'int' [-Wformat]
    scanf("%d",R);
           ~~  ^
/sandbox/1/a.c:6:12: error: cannot combine with previous 'double' declaration specifier
    double float v=4/3*pine*R*R*R;
           ^
1 warning and 1 error generated.