I keep getting errors with functions, even though I am following learncpp.com’s couse and even copying the code
So far, since I’m still only on Unit 2 in the course (https://www.learncpp.com/) I haven’t really learned any types of functions other than “int” and “void”. Whenever I use “int” or “void”, I always get an error saying that I haven’t declared the function yet. However, “int main()” always works and the error never occurs. Down below is an example: