'Size was not declared in this scope' C++ Part 2, Arrays, 4*

Hi, I am entering the exact same code as in the video and it keeps giving me this error.

I am using MinGW to compile the code - Everything is fine except for whenever I try to use ‘size’ - this always causes the error shown in the screenshots.

I managed to work around the issue by doing an end first thingy. Thanks to everyone who took the time to read the post.

Here, check this answer: