Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95346 | 陈铎文 | 04计算平均分 | C++ | Compile Error | 0 MS | 0 KB | 145 | 2024-10-27 12:05:28 |
#include<bits/stdc++.h> using namespace std; int main(){ double a,b; scanf("%lf%lf",&a,&b,&c); printf("%.2lf",(a+b+c)/3;) return 0; }
Main.cc: In function 'int main()': Main.cc:5:24: error: 'c' was not declared in this scope scanf("%lf%lf",&a,&b,&c); ^ Main.cc:6:27: error: expected primary-expression before ')' token printf("%.2lf",(a+b+c)/3;) ^