#include <iostream>
#include <string>
#include <vector>
#include <cctype>
#include <cstdlib>
#include <stdexcept>
#include <initializer_list>

using namespace std;

using string_arr = string[10];

string s[10] = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j"};
int odd[] = {1, 3, 5, 7};
int even[] = {0, 2, 4, 6};

string (&f())[10]
{
        return s;
}

string_arr& f1() { return s; }

auto f2() -> string_arr&
{
        return s;
}

decltype(s) &f3() { return s; }

decltype(odd) &g(int i)
{
        return (i % 2) ? even : odd;
}


int main(int argc, char *argv[])
{
        auto x = f3();
        auto y = g(2);

        for (int i = 0; i < 10; ++i)
                cout << *(x + i) << " ";
        cout << endl;
        for (const auto i : y) cout << i << endl;
}
