79564483

Date: 2025-04-09 13:42:23
Score: 1
Natty:
Report link

I haven't looked at C code in ages, but I think

int arr[n];

is wrong. Space for local variables is allocated at the start of the function, and at that point the value of n isn't available yet (could be 0, could be something else). You need to malloc() this array, that should fix it.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: mpz