I had a problem when I was trying to solve the edge detection problem in the CS50. Below is my code:
// Detect edges void edges(int height, int width, RGB