my code :
#include <iostream>
using namespace std;
int main()
{
int a;
long b;
char c;
float d;
double f;
cin>>a>>b>>c>>d>>f;
cout<<a<<endl<<b<<endl<<c<<endl<<d<<endl<<f;
return 0;
}
the problem : Input Format
Input consists of the following space-separated values: int, long, char, float, and double, respectively.
Output Format
Print each element on a new line in the same order it was received as input. Note that the floating point value should be correct up to 3 decimal places and the double to 9 decimal places.
it says wrong on test 2,3,4 ?