Your are using an uninitialized variable (N) in main().
Visual Studio 2019 vomits up an error and halts compilation. Did you mean to assign the length of your C-string to N or use the variable len in your for loop?
cout<<"\nThe number of permutations possible is: "<<count<<i;
This line's output ^^^ will be deceptive, it concatenates two different variables so it looks like one bigger number.