Main.cpp:17:7: error: invalid preprocessing directive #Detect
17 | # Detect orientation of each lamp
| ^~~~~~
Main.cpp:20:11: error: invalid preprocessing directive #Light
20 | # Light up only one lamp at a time
| ^~~~~
Main.cpp:24:11: error: invalid preprocessing directive #If; did you mean #if?
24 | # If one lamp lights up full row, it is horizontal
| ^~
| if
Main.cpp:30:7: error: invalid preprocessing directive #Decide
30 | # Decide which lamps to turn on to light full grid
| ^~~~~~
Main.cpp:34:33: error: stray '#' in program
34 | result[i][i] = '1' # One per row
| ^
Main.cpp:36:33: error: stray '#' in program
36 | result[i][i] = '1' # One per column
| ^
Main.cpp:1:1: error: 'import' does not name a type
1 | import sys
| ^~~~~~
Main.cpp:1:1: note: C++20 'import' only available with '-fmodules-ts', which is not yet enabled with '-std=c++20'