C++ Prototype Declaration not working in my code?
https://code.sololearn.com/cpkwZ1afYcJi/#cpp #include <iostream> #include <string> using namespace std; void allChecked(); void sike(); int main() { string nameString; cout << "What is your name?" << endl; cin >> nameString; if(nameString == "Winson") { int password = 1316; int passwordInteger; cout << "You're awesome ;)" << endl; cout << "What is the password?" << endl; cin >> passwordInteger; if(passwordInteger == password) { string favoriteArtist = "Frank Ocean"; string artistString; cout << "Correct, you may continue." << endl; cout << "Who's your favorite artist?" << endl; cin >> artistString; if(artistString == favoriteArtist) { allPassChecked(); } else { sike(); } } else { cout << "Imposter!" << endl; } } else { cout << "And you are?" << endl; } } void allPassChecked() { cout << "You are you, lol" << endl; } void sike() { cout << "Sike!" << endl; } When I'm declaring the functions as prototype above the main functions, the compiler reacts by saying it is not defined in the scope? Why is this?