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

Автор Burglar_anu, история, 3 года назад, По-английски

I understand that if value exceeds the range of int it gives overflow error like

int a=100000 and int b=100000, int c=a*b then cout<<c; will output overflow error

but instead of storing the value if i just print it then why does it gives overflow error

int a=100000 and int b=100000, cout<<a*b; [submission:244431214]

Please help!

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор Burglar_anu, история, 3 года назад, По-английски

1831B - Array merging

When i submit it is showing 'out of bounds' error but the other solution is getting accepted the only difference is that i have used two one dimensional array and he have used one two dimensional array.

Error submission: 242771431 Accepted submission: 242771679

Please help, why am i getting the error?

Полный текст и комментарии »

  • Проголосовать: нравится
  • -11
  • Проголосовать: не нравится