Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
3743 | 杨洋杰 | 【基础题】平均数 | C++ | Compile Error | 0 MS | 0 KB | 136 | 2024-06-28 22:07:12 |
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; printf("%.3f",(a+b+c)/3) return 0; }
Main.cc: In function 'int main()': Main.cc:6:28: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=] printf("%.3f",(a+b+c)/3) ^ Main.cc:7:5: error: expected ';' before 'return' return 0; ^