Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
88663 | 殷佳雨萱 | 04计算平均分 | C++ | Compile Error | 0 MS | 0 KB | 147 | 2024-08-19 21:29:18 |
#include<iostream> using namespace std; int main(){ double a,b,c; cin>>a>>b>>c; scanf("%lf%lf%lf",&a,&b) return 0; }
Main.cc: In function 'int main()': Main.cc:7:28: warning: format '%lf' expects a matching 'double*' argument [-Wformat=] scanf("%lf%lf%lf",&a,&b) ^ Main.cc:9:5: error: expected ';' before 'return' return 0; ^ Main.cc:9:13: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] return 0; ^