ISO c++ forbids comparisson btween pointers and integers

This is a discussion on ISO c++ forbids comparisson btween pointers and integers within the C++ Programming forums, part of the General Programming Boards category; Hello again.
So im trying to compile a programm and i get the following message
"ISO c++ forbids comparisson between ...

i still cant make it work :S
the program has to put integer into an array witht he use of pointers.
and also it should be able to check if there is an integer into the array, that the user wants ti find.
this is the whole code:

the problem is that i am not familiar witht he use of pointers, and i cant get it right :S
any help is accepted as i have to deliver this to the university by e-mail by the end of the day, wich is 45 min away :P

i have sended it with this code, since i cant fix it, but i can resend it if i get the code right before midnight

Since the pointer points to an array, consider this:
An array is collection (or vector, if you will) of values. So when you try to compare that array there, WHICH of those values did you want to compare? The compiler doesn't know, and gives you an error.
Now, letting a pointer point to an array makes it point to its first element. So if you dereference the pointer, it would be the same as writing name_of_array[0]. But I don't think you want to compare to the 0th element for every time in the loop?
Instead, you would try every element in the array, yes? Then you would have to tell the compiler which element you want to compare by putting name_of_pointer[element].