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

Правка en1, от 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

Теги c++, iostream, spoj, stdio

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский vee_sharp 2015-12-17 16:04:33 478 Initial revision (published)