Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115371 王镜铭 04计算平均分 C++ Compile Error 0 MS 0 KB 153 2025-03-30 12:59:13

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ long double a,b,c,d; cin>>a>>b>>c; d=(a+b+c)/3; printf("%.2f",d) return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:18: warning: format '%f' expects argument of type 'double', but argument 2 has type 'long double' [-Wformat=]
   printf("%.2f",d)
                  ^
Main.cc:8:5: error: expected ';' before 'return'
     return 0;
     ^