REQUEST TO REGULER USERS...

PLEASE TELL ME COMMON MISTAKES HERE…
FACING RUN TIME ERROR… WHILE MY CODES ARE PERFECT… HELP ME IF YOU… :slight_smile:

First mistake - Writing everything in CAPS. That’s considered shouting.

Second mistake - …

Excuse me, but this is really irritating for me.

Common mistakes -

  1. Not reading problem carefully.
  2. Not conforming to input or output format. Like forgetting to add newline.
  3. SISEGV ← most common Runtime error. The wiki entry explains it nicely.
  4. Improper data type. This is important in case of languages with fixed size of data types. Like C has 32bit integers. So if you are multiplying 2 numbers which are say - 106 and 105, the result will not fit in integer, and the product would be not what you desire. Worse it may become negative in case of signed numbers.
  5. Caring about trivial optimization, instead of improving algorithm asymptotically ← TLE, TLE, TLE
  6. Not indenting code. IMO this is the worst problem. If you don’t intend your code nicely, you lose the ability to spot shrieking blunders in your code.
  7. Not reading FAQ thoroughly.

I will add more mistakes when I commit them. BTW I am yet to do the 6th and 7th.

1 Like