Language
C++
Compiler
gcc HEAD 9.0.1 20190221 (experimental)
Options
Warnings
Boost 1.69.0
C++11
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++11 [a]:
[([1, 2], ["gandalf", "the", "grey"]), ([3, 4], ["sauron"]), ([5], ["frodo", "bilbo"])]
[a,0,1]:
[([1, 2], ["gandalf", "the", "grey"]), ([3, 4], ["sauron"])]
[a,5,5]:
[]
[([1, 2], ["gandalf", "the", "grey"]), ([3, 4], ["sauron"]), ([5], ["frodo", "bilbo"])]
[b]:
[(1, [(2, 3)]), (4, [(5, 6), (7, 8)]), (9, [(10, 11)])]
[b,0,0]:
[(1, [(2, 3)])]
[(1, [(2, 3)]), (4, [(5, 6), (7, 8)]), (9, [(10, 11)])]
[c]: (2, "twin")
[c.second]: "twin"
(2, "twin") "twin"
[d]:
[["how", "r"], ["u"]]
[d,0,1,0,0,0,1]:
[["ho"], ["u"]]
[["ho"], ["u"]]
[e]:
["fated", "faithful", "fatal"]
[e,0,2,3,4]:
["ed", "th", "al"]
["ed", "th", "al"]
[f]:
[[t, r, i, c, k],
[f, r, e, e, ]]
[f,0,10,1,3]:
[[r, i, c],
[r, e, e]]
[[r, i, c],
[r, e, e]]
[g]:
[["file", "input"],
["file", "output"]]
[g,0,1,0,1,0,1]:
[["fi", "in"],
["fi", "ou"]]
[["fi", "in"],
["fi", "ou"]]
[h]:
[1, 2, 3, 4, 5]
[h,2,3]:
[3, 4]
[3, 4]
[i]:
[9, 10, 11, 12]
[i,2,3]:
[11, 12]
[11, 12]
[j]:
[[[4, 5, 6],
[10, 11, 12]],
[[1, 2, 3],
[7, 8, 9]]]
[j,0,0,0,1,0,1]:
[[[4, 5],
[10, 11]]]
[[[4, 5],
[10, 11]]]
[k]:
[[[1, 2, 3], [4, 5]],
[[6, 7, 8], [9, 10]]]
[k,0,1,0,3,0,0]:
[[[1], [4]],
[[6], [9]]]
[[[1], [4]],
[[6], [9]]]
[l]:
[(1, (2, 3)), (4, (5, 6)), (7, (8, 9))]
[l,0,1]:
[(1, (2, 3)), (4, (5, 6))]
[(1, (2, 3)), (4, (5, 6))]
[m]: (1, [2, 3, 4])
(1, [2, 3, 4])
[n,0]:
[3.141593, 2.718280]
[3.141593, 2.718280]
[o,0]:
[2934872934792347, 834759385742]
[2934872934792347, 834759385742]
[p]:
[["0010", "1010"],
["0110", "1110"],
["0010", "1010"],
["0110", "1110"]]
[p,1,3]:
[["0110", "1110"],
["0010", "1010"],
["0110", "1110"]]
[["0110", "1110"],
["0010", "1010"],
["0110", "1110"]]
[q]:
["0011", "1011", "0111", "1111"]
[q,1,2,0,2]:
["011", "111"]
[q,5,5,0,2]:
[]
[]
"0011"
"1011"
[r]: "100110"
[r,0,4]: "00110"
[r,20,1]: ""
""
[s,20,1]: ""
""
[t]: 5
[u]: R
[v]: ((234.345340, 42), (133, "IOI"))
5 R ((234.345340, 42), (133, "IOI"))
Exit Code:
0