VALIDATE iP ADDRESS UPDATED

https://ide.codingblocks.com/s/258913: WHY IS GIVING RUNERROR AND terminate called after throwing an instance of ā€˜std::invalid_argument’
what(): stoi
Last executed input:
ā€œ256.256.256.256ā€ ERROR

QUESTION LINK:https://leetcode.com/explore/featured/card/june-leetcoding-challenge/541/week-3-june-15th-june-21st/3362/

@Vibhuti0206
you are calling stoi() function when temp string is empty.