Language
C++
Compiler
gcc HEAD 16.0.1 20260227 (experimental)
Options
Warnings
Don't Use Boost
C++2b
-pedantic
$ g++ prog.cc -Wall -Wextra -std=c++2b -pedantic prog.exe: gsl-lite/gsl-lite.hpp:5820: precondition: Assertion `static_cast<std::size_t>( size() ) - static_cast<std::size_t>( offset ) >= static_cast<std::size_t>( count )' failed.
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]
5: [1, 2, 3, 4, 5, 0, -738312192]
6: [1, 2, 3]
7: [3, 4, 5]
8: [2, 3, 4, 5]
9: [2, 3, 4]
Exit Code:
134