| 6 | using Num = long long int; |
| 7 | |
| 8 | static constexpr auto read_array(auto array, auto len) noexcept { |
| 9 | return block_( |
| 10 | array[0] = io::read<Num>(), |
| 11 | if_(array[0] == none_)( |
| 12 | len = 0 |
| 13 | )->else_( |
| 14 | for_(len = 1, io::read<char>() == ',', ++len)( |
| 15 | array[*len] = io::read<Num>() |
| 16 | ) |
| 17 | ) |
| 18 | ); |
| 19 | } |
| 20 | |
| 21 | static constexpr auto write_array(auto array, auto len) noexcept { |
| 22 | constexpr struct : local {} stack; |
no test coverage detected