fork download
  1. A={2,1,2,1,2,1}
  2. R R R R R R
  3.  
  4. Swapping {0,1} {2,3} {4,5}
  5. A={1,2,1,2,1,2}
  6. L L L L L L
  7.  
  8. Swapping {1,2} {3,4}
  9. A={1,1,2,1,2,2}
  10. L R R R R L
  11.  
  12. Swapping {2,3}
  13. A={1,1,1,2,2,2}
  14. L R L L R L
  15.  
  16. Swapping {1,2} {3,4}
  17. A={1,1,1,2,2,2}
  18. L L R R L L
  19.  
  20. Swapping {0,1} {4,5}
  21. A={1,1,1,2,2,2}
  22. R R R R R R
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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
    ^
stdout
Standard output is empty