Language
C++
Compiler
gcc HEAD 9.0.1 20190307 (experimental)
Options
Warnings
Don't Use Boost
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -std=gnu++2a
terminate called without an active exception
1: [1, 2, 3, 4, 5]
2: [1, 2, 3, 4, 5, 6]
3: [1, 2, 3, 4, 5, 6, 7]
4: [1, 2, 3, 4, 5]
5: [1, 2, 3]
6: [1, 2, 3, 4, 5, 0, 4196768]
7: [1, 2, 3]
8: [1, 2, 3, 4, 5, 0, 4196768]
9: [1, 2, 3]
10: [3, 4, 5]
11: [2, 3, 4, 5]
12: [2, 3, 4]
Signal:
Aborted