printer.cpp:13:7: error: invalid preprocessing directive #Remove
13 | # Remove extra characters from previous word
| ^~~~~~
printer.cpp:17:7: error: invalid preprocessing directive #Add
17 | # Add new characters for current word
| ^~~
printer.cpp:21:7: error: invalid preprocessing directive #Print
21 | # Print the word
| ^~~~~
printer.cpp:31:7: error: invalid preprocessing directive #Try
31 | # Try each word as the first word
| ^~~
printer.cpp:32:28: warning: multi-character character constant [-Wmultichar]
32 | min_operations = float('inf')
| ^~~~~
printer.cpp:43:7: error: invalid preprocessing directive #Try
43 | # Try each word as starting point
| ^~~
printer.cpp:45:11: error: invalid preprocessing directive #Start
45 | # Start with this word
| ^~~~~
printer.cpp:50:11: error: invalid preprocessing directive #Greedily
50 | # Greedily choose next word based on maximum common prefix
| ^~~~~~~~
printer.cpp:58:11: error: invalid preprocessing directive #Calculate
58 | # Calculate operations for this sequence
| ^~~~~~~~~
printer.cpp:66:3: error: invalid preprocessing directive #Read
66 | # Read input
| ^~~~
printer.cpp:70:3: error: invalid preprocessing directive #Find
70 | # Find optimal sequence of operations
| ^~~~
printer.cpp:73:3: error: invalid preprocessing directive #Print
73 | # Print output
| ^~~~~
printer.cpp:1:1: error: 'def' does not name a type
1 | def get_common_prefix_length(word1, word2):
| ^~~