Help with error

code: https://ide.codingblocks.com/s/479830 1

code is showing error on leetcode: https://leetcode.com/problems/path-with-minimum-effort/

see your insert call on the set,ur definition doesnt match .also pls don’t post doubts of other platform’s course here