Debug Error -Abort() Has Been Called
问题 I'm trying to enter a number,n and get the least super lucky number that is more than or equal to n. Super lucky: it's decimal representation contains equal amount of digits 4 and 7. For example, numbers 47, 7744, 474477 are super lucky and 4, 744, 467 are not. Here's my code #include<iostream> #include<string> using namespace std; void superLucky(int n,string s, int count4, int count7) { if (s.size() > 10) return; if (( stoi(s) >= n ) && (count4 == count7) && (count4+count7)!=0) { cout << s