Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5018 | 刘芃伽 | 04计算平均分 | C++ | Compile Error | 0 MS | 0 KB | 154 | 2024-10-26 10:34:15 |
#include<cstdio> using namespace std; int main() { double c,m,e; scanf("%lf%lf%lf",&c,&m,e); prinf("%.2lf",(c+m+e)/3); return 0; }
Main.cc: In function 'int main()': Main.cc:6:30: warning: format '%lf' expects argument of type 'double*', but argument 4 has type 'double' [-Wformat=] scanf("%lf%lf%lf",&c,&m,e); ^ Main.cc:7:28: error: 'prinf' was not declared in this scope prinf("%.2lf",(c+m+e)/3); ^