+ 1

Template errored

Can any one please help me to understand the error into the attached code? https://code.sololearn.com/coGe3BSoS5wz/?ref=app

30th Jun 2019, 12:06 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
5 Answers
+ 2
~ swim ~ Not working. I got the solution and I have updated the code. Please check it. Let me know if you have better solution.
1st Jul 2019, 6:45 AM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
+ 1
~ 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.
30th Jun 2019, 3:48 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
+ 1
𝕿𝖍𝖊 𝕲𝖗𝖊𝖆𝖙 𝕾𝖆𝖌𝖆 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
30th Jun 2019, 4:03 PM
Zeke Williams
Zeke Williams - avatar