С++ возвращает некое число 3221225477 помогите решить проблему
Код:
#include <string>
#include <fstream>
#include <cmath>
using namespace std;
int main()
{
int l,i,step;
cout <<"Leinght:";
cin >> l;
cout<<endl;
string PassV = "";
const char* AllSymb[] = {"Z","Y","X","W","V","U","T","S","R","Q","P","O","N","M","L","K","J","I","H","G","F","E","D","C","B","A","z","y","x","w","v","u","t","s","r","q","p","o","n","m","l","k","j","i","h","g","f","e","d","c","b","a","!","#","$","&","(",")","*","+",",","-",".","/",":",";","<",">","=","@","?","[","]","\\","^","_","`","{","}","|","~"};
int IndArr[l]={0};
for(i=0;i>=l;i++){IndArr[i]=0;}
while (step!=pow(sizeof(AllSymb),sizeof(IndArr))){
for(i=0;i<=sizeof(AllSymb);i++)
{
PassV = "";
for(i=0;i<=sizeof(IndArr);i++)
{
PassV += AllSymb[IndArr[i]];
}
cout <<PassV <<endl;
step +=1;
}
for(i=0;i<=sizeof(IndArr);i++)
{
if (sizeof(AllSymb) == IndArr[i]){
IndArr[i] = 0;
if (i != sizeof(IndArr)-1){
IndArr[i+1] +=1;
}
}
}
}
return 0;
}
Возврат от компилятора:
Leinght: 10
--------------------------------
Process exited after 5.768 seconds with return value 3221225477
Для продолжения нажмите любую клавишу . . .
Код должен перебирать все возможные варианты из символов.