C'est ton algo qui renvoi 0, pas un soucis de pointeur

#include <stdlib.h>
#include <iostream>


const int tailleY = 100;
const int tailleX = 200;
int seaLevel = 50;
int...