This code looks for numbers that are palindromes in both decimal and binary. Function isDecPal checks if number is decimal palindrome and returns true if it is, and false if it isn't. isBinPal does the same.
Both functions convert number to string, reverses it, and checks if it's the same. When converting to binary, I use vector to store binary numbers in.
Now when I set the interval from 1 to 1 000 000 and calculate the sum of palindromic numbers, loop goes to 3113 and then the compiler crashes so bad I have to restart my codeblocks. What's going on?