Problem lengthsort
User Batigol
Submission Time 2024-04-26 16:56:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp:1:19: error: stray ā€˜#ā€™ in program
1 | n = int(input()) # Read the number of words
| ^
lengthsort.cpp:3:3: error: invalid preprocessing directive #Read
3 | # Read the words into a list
| ^~~~
lengthsort.cpp:6:3: error: invalid preprocessing directive #Define; did you mean #define?
6 | # Define a custom sorting function
| ^~~~~~
| define
lengthsort.cpp:10:3: error: invalid preprocessing directive #Sort
10 | # Sort the words using the custom sorting function
| ^~~~
lengthsort.cpp:13:3: error: invalid preprocessing directive #Print
13 | # Print the sorted words
| ^~~~~
lengthsort.cpp:1:1: error: ā€˜nā€™ does not name a type
1 | n = int(input()) # Read the number of words
| ^