I want to separate in this way a -> num and b -> num2
But I can’t add another part of the variable to the for loop, for (auto& i, i2 : arr, arr2)
Are there other ways to do this?
#include <charconv>
int64_t a = 123567893,
        b = 85162,
        test = 0,
        test2 = 0;
    string arr = to_string(a),
           arr2 = to_string(b),
           num,
           num2 ;
    for (auto& i : arr, arr2)
    {
        num.push_back(i);
        num2.push_back(i);
        cout << i;
        // cout << i2;
    }
    from_chars(num.data(), num.data() + num.size(), test);
    from_chars(num2.data(), num2.data() + num2.size(), test2);
    cout << "\n" << test << endl;
    cout << "\n" << test2 << endl;
 
     
     
     
    