Блог пользователя gilcu3

Автор gilcu3, 14 лет назад, По-английски

Can somebody help me to find why this code gives WA: PON It's just a classical problem with a classical solution that should work fine...

Edit: Problem solved
  • Проголосовать: нравится
  • -12
  • Проголосовать: не нравится

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

It is better to use streams (cin) for reading, scanf implementations are not consistent across different OS, compilers, OJ ... is a mess.

»
14 лет назад, скрыть # |
← Rev. 3  
Проголосовать: нравится +9 Проголосовать: не нравится

For scanf() and printf() you have to add cstdlib library. Try to send your code with cstdlib library.