5 AnswersNew Answer
~ swim ~ Not working. I got the solution and I have updated the code. Please check it. Let me know if you have better solution.
𝕿𝖍𝖊 𝕲𝖗𝖊𝖆𝖙 𝕾𝖆𝖌𝖆 Line 119 pair<V, W> makepair <V t, W u> should be pair<V, W> makepair (V t, W u)
𝕿𝖍𝖊 𝕲𝖗𝖊𝖆𝖙 𝕾𝖆𝖌𝖆 Your solution is better, i can't think of anything else of now. Will let you know if i figure out a solution.
~ swim ~ I am trying to implement STD::get(pair) method. But unable get logical idea. I have updated my code into same file. Could you please check and help here. My goal is to compile and run last two line from the main. One them is commented at the moment.
𝕿𝖍𝖊 𝕲𝖗𝖊𝖆𝖙 𝕾𝖆𝖌𝖆 I took a look even though I don't have much template programming experience. It appears your get<int> functions are written incorrectly. Try commenting out all the lines except for the first 3 in main and read the output. Also, here is my adjustment of the code with all but the 3 lines commented out. It seems to work like this: https://code.sololearn.com/cmvjmseLKO5r/?ref=app