Getting error in C++ when used iostream but acc when used cstdio

Revision en1, by vee_sharp, 2015-12-17 16:04:33

I was solving maximum quad area in SPOJ. Here is the link http://www.spoj.com/problems/QUADAREA/. It is a pretty simple one based on formula. However when I used the formula in C++ it showed WA. But the same formula and same logic showed acc when i used scanf and printf. Is there something I am missing? Here are the links to the codes: with cin: http://ideone.com/kSPbfU without cin: http://ideone.com/uF0yiK

Tags c++, iostream, spoj, stdio

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English vee_sharp 2015-12-17 16:04:33 478 Initial revision (published)