How does std::cout work? The following code doesn\'t pass certain test cases for a question on HackerEarth.com:
double n,a,b; while(t--){ cin>>n>>