#include <iostream>
void do_math( const int (&a)[3] )
{
std::cout << "do_math -" ;
for( int v : a ) std::cout << ' ' << v ;
std::cout << '\n' ;
}
int main()
{
constexpr int constants[][3] = { {}, {0,1,2}, {4,5,6}, {7,8,9}, {10,11,12} } ;
constexpr std::size_t n = sizeof(constants) / sizeof(*constants) ;
std::size_t ans ; std::cout << "please enter number: " && std::cin >> ans ;
if( ans>0 && ans<n ) do_math( constants[ans] ) ;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdm9pZCBkb19tYXRoKCBjb25zdCBpbnQgKCZhKVszXSApCnsKICAgIHN0ZDo6Y291dCA8PCAiZG9fbWF0aCAtIiA7CiAgICBmb3IoIGludCB2IDogYSApIHN0ZDo6Y291dCA8PCAnICcgPDwgdiA7CiAgICBzdGQ6OmNvdXQgPDwgJ1xuJyA7Cn0KCmludCBtYWluKCkKewogICAgY29uc3RleHByIGludCBjb25zdGFudHNbXVszXSA9IHsge30sIHswLDEsMn0sIHs0LDUsNn0sIHs3LDgsOX0sIHsxMCwxMSwxMn0gfSA7CiAgICBjb25zdGV4cHIgc3RkOjpzaXplX3QgbiA9IHNpemVvZihjb25zdGFudHMpIC8gc2l6ZW9mKCpjb25zdGFudHMpIDsKCiAgICBzdGQ6OnNpemVfdCBhbnMgOyBzdGQ6OmNvdXQgPDwgInBsZWFzZSBlbnRlciBudW1iZXI6ICIgJiYgc3RkOjpjaW4gPj4gYW5zIDsKICAgIGlmKCBhbnM+MCAmJiBhbnM8biApIGRvX21hdGgoIGNvbnN0YW50c1thbnNdICkgOwp9Cg==