Un autre canadienne. But anyway. That is really strange. I've never gotten console output as an error before. What IDE are you using, And what operating system?
That said, that's a quite a cool program your writing! Essentially it searches the memory for values and displays those addresses, right?.
However, even if you fix this bug i think you will run into access violations. and isn't the first parameter of the read process memory function supposed to be a handle to the process you are reading the memory of?