0

Whenever I am compiling my cpp file on LMS and in return Style error is coming with this sentence. One or more unexpected \r (^M) found;better to use only a \n [whitespace/newline] [1]??

1 Answers1

0

Sounds like your compiler is complaining about CRLF-encoded files (DOS/Windows) instead of LF-only, as per UNIX/POSIX conventions.

You may need to adjust your editor to save in the correct format.

tadman
  • 208,517
  • 23
  • 234
  • 262