I have few doubts related to this problem, with respect to this problem https://cses.fi/problemset/task/1634/
1 -> https://ide.codingblocks.com/s/231523
when im taking ans var as INT_MAX why am i getting a wrong ans, and if i replace it with 1e9 definition , it is working fine, im talking this with respect to line number 12
2 -> another question is how do i apply a condition that if im unable to change my money in coins then return -1
suppose consider a test case as
2 10
3 6
i want my ans as -1