#include <iostream>
#include <array>

std::array<int, 2> array(int x, int y) {
    std::array<int, 2> result = {x, y};
    return result;
}

int main()
{
    std::array<int, 2> order = {1,2};
    std::array<int, 2> nums = array(1, 2);
    if(nums == order)
        std::cout << "The arrays are equal\n";
}