QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#800805 | #7962. 前缀和 | char_phi# | Compile Error | / | / | C++14 | 179b | 2024-12-06 15:47:22 | 2024-12-06 15:47:24 |
Judging History
This is the latest submission verdict.
- [2024-12-06 15:47:24]
- Judged
- Verdict: Compile Error
- Time: 0ms
- Memory: 0kb
- [2024-12-06 15:47:22]
- Submitted
answer
#include<bits/stdc++.h>
using namespace std;
int n;
double p,l,r;
int main(){
cin>>n>>p>>l>>r;
doublr ans=(r-l+1)*p;
cout<<fixed<<setprecision(8)<<ans;
return 0;
}
詳細信息
answer.code: In function ‘int main()’: answer.code:8:9: error: ‘doublr’ was not declared in this scope; did you mean ‘double’? 8 | doublr ans=(r-l+1)*p; | ^~~~~~ | double answer.code:9:39: error: ‘ans’ was not declared in this scope; did you mean ‘abs’? 9 | cout<<fixed<<setprecision(8)<<ans; | ^~~ | abs