🎤Mic check 🎤

Mustafa grabs a bottle of water and heads back out to the mosque for tarawih prayers. He arrives a little early to find members of the community helping to open sections of the mosque that are not usually used. The higher numbers of people that have been attending during Ramadan require more than usual prayer spaces. The increased attendance during Ramadan means the PA system must reach every area.

Brother Salih looks worried. The cabling from last Ramadan has been taken down and stacked away. The cables themselves are fine — but the rows may not have been stacked correctly.

The wiring forms a ring circuit, and each row must connect properly to the rows above and below for the system to work.

The rules

As you can see from above,
- Any row containing a vertical wiring (|) must have a connector (+) in the same column on the row above and the row below.
- Each row of wiring is complete and must remain unchanged.
- Each row is unique and appears exactly once in the input.

Here is an example of the wiring as its been stacked.

0: [---+---+---]
1: [--|--|----|]
2: [---+-+-+-+-]
3: [---|---|---]
4: [-----+---+-]
5: [+----|---+-]
6: [|----+-----]
7: [+----|-----]
8: [--+--+----+]
9: [-----|---|-]
10:[+-+--+----+]

Here is how the wiring has been sorted to make sure that the rules are followed.

0: [---+---+---]
3: [---|---|---]
2: [---+-+-+-+-]
9: [-----|---|-]
4: [-----+---+-]
5: [+----|---+-]
6: [|----+-----]
7: [+----|-----]
8: [--+--+----+]
1: [--|--|----|]
10:[+-+--+----+]

Part 1: Spot the Faults

The rows are currently stacked as-is. But it's clear that the even indexed rows seem to be in order.
This means that some of the odd number rows are in the wrong order. Identify which rows violate the wiring rules.
for example, the incorrectly stacked wiring above should result in a sequence of:

1,3,9