prog.cpp:1:1: error: ‘A’ does not name a type
A={2,1,2,1,2,1}
^
prog.cpp:2:4: error: ‘R’ does not name a type
R R R R R R
^
prog.cpp:4:16: error: expected unqualified-id before ‘{’ token
Swapping {0,1} {2,3} {4,5}
^
prog.cpp:4:22: error: expected unqualified-id before ‘{’ token
Swapping {0,1} {2,3} {4,5}
^
prog.cpp:5:1: error: ‘A’ does not name a type
A={1,2,1,2,1,2}
^
prog.cpp:6:4: error: ‘L’ does not name a type
L L L L L L
^
prog.cpp:8:16: error: expected unqualified-id before ‘{’ token
Swapping {1,2} {3,4}
^
prog.cpp:9:1: error: ‘A’ does not name a type
A={1,1,2,1,2,2}
^
prog.cpp:10:4: error: ‘L’ does not name a type
L R R R R L
^
prog.cpp:13:1: error: ‘A’ does not name a type
A={1,1,1,2,2,2}
^
prog.cpp:14:4: error: ‘L’ does not name a type
L R L L R L
^
prog.cpp:16:16: error: expected unqualified-id before ‘{’ token
Swapping {1,2} {3,4}
^
prog.cpp:17:1: error: ‘A’ does not name a type
A={1,1,1,2,2,2}
^
prog.cpp:18:4: error: ‘L’ does not name a type
L L R R L L
^
prog.cpp:20:16: error: expected unqualified-id before ‘{’ token
Swapping {0,1} {4,5}
^
prog.cpp:21:1: error: ‘A’ does not name a type
A={1,1,1,2,2,2}
^
prog.cpp:22:4: error: ‘R’ does not name a type
R R R R R R
^