It's illegal in C++ to do this - though it will work in GCC.
In C++ the dimesions of an array must be specified at compile time.
If you don't know the size of an array then use a std::vector.
firstly thank you for answer all of you, the cpp forum is good,i understand i am using dev cpp 5.11 and it allows that, if i understand correctly i should use that int *array = new int[a];