karansher / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
1 stars 0 forks source link

Vector subscript out of range #75

Closed ValentinaManferrari closed 1 year ago

ValentinaManferrari commented 1 year ago

image Hello! I have written the rgba_to_rgb and write_ppm functions and I am getting this error every time I try to run the program... I checked all vectors and I am not accessing any out-of-bound vector index, do you know if the error could be caused by another file? I was trying to find logs to see the exact line where the error is occurring but I cannot find anything in the debug mode... any debugging tip/suggestion? Thank you so much in advance

ValentinaManferrari commented 1 year ago

Nevermind sorry I fixed it

scissorkhizer commented 1 year ago

I ended up encountering the same issue and don't think I'm accessing an out of bound index. Can you share what exactly went wrong (if that's okay to share ofcourse)?

Edit: Nevermind, I also fixed it lol