79375676

Date: 2025-01-21 19:09:20
Score: 2
Natty:
Report link

Yes so i found a solution to the problem. It just needed a space before the %[^\n] in scanf.

 scanf(" %[^\n]s", str);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: MrKotopoulos