Problem | shiritori_ex |
---|---|
User | Microphone |
Submission Time | 2025-01-02 21:15:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
shiritori_ex.cpp:5:7: error: invalid preprocessing directive #Initialize
5 | # Initialize graph where each node is a letter and store words that start and end with those letters
| ^~~~~~~~~~
shiritori_ex.cpp:14:7: error: invalid preprocessing directive #DP
14 | # DP and backtracking to find the longest chain
| ^~
shiritori_ex.cpp:15:19: error: stray ‘#’ in program
15 | dp = [0] * N # dp[i] is the length of the longest chain ending with word i
| ^
shiritori_ex.cpp:16:22: error: stray ‘#’ in program
16 | prev = [-1] * N # prev[i] points to the previous word in the chain for word i
| ^
shiritori_ex.cpp:18:7: error: invalid preprocessing directive #Process
18 | # Process each word and try to extend chains
| ^~~~~~~
shiritori_ex.cpp:24:11: error: invalid preprocessing directive #Check
24 | # Check all words th