Hello fellows. I am trying to push_back 2D matrices I obtained from ontain function and I need to have 3D vector by adding these 2D vectors. TO do so, I coded as follows but I could not achieve it. 3D1.push_back and 3D2.push_back are underlined in main function. I will be very happy if you can help me to fix it.
Thank you so much
You have conflicting definitions of obtain().
For brevity, I will abbreviate:
tuple --> T
vector<int> -> VI
vector<vector<int>> --> VVI
Line 3: obtain shall return a T<VVI, VVI>
Line 9: c is a T<VI, double, VVI>
Line 16: type(c) != type(obtain())
Line 23: obtain shall return a T<VI, double, VVI>
Line 24: You are making a T<VVI, VVI>