Submission #3145176
Source Code Expand
#include <iostream> using namespace std; double p,x; int main(){ cin >> x >> p; if(x%2==1) x++; cout << setprecision(8) << x/(2*p) << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - Takahashi is Missing! |
User | idsigma |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 156 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:7:8: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’ if(x%2==1) x++; ^ ./Main.cpp:8:25: error: ‘setprecision’ was not declared in this scope cout << setprecision(8) << x/(2*p) << endl; ^