Assignment Error
Just starting working with Cpp this month. In the middle of working on a hailstone assignment. Earlier I had no problem with the main function when it was just: int main(). I remember needing to review assignment requirements again, and noticed the professor wants us to use: int main (int argc, char** argv) instead of what I provided earlier. Once I made that change It get errors about cin, cout, and endl haven't been declared in this scope. _______________________________________________________ #include <cstdio> using namespace std; //Function Variable Declaration. int hailstone_Sequence(int n); int lengthof_Sequence(int l); //void Print_Set(int [] set, int size); int main(int argc, char** argv) { int user_Input; cin >> user_Input; (error) cout << "What number shall I start with? " << user_Input << endl; (error) cout << "The hailstone of sequence starting at " << user_Input << " is: " << hailstone_Sequence(user_Input) << endl; cout << "The length of the sequence is ___. \n"; //cout << "The largest number in the sequence is: " << \n"; cout << "The longest hailstone sequence with a number up to __ has length ___ "; cout << "The longest hailstone sequence with a number up to __ begins with ___ "; return 0; } __________________________________________________________ Can someone provide some insight? Appreciate the help.