error: 'print' was not declared in this scope; did you mean 'printf'?
I have the following incomplete C++ code as an assignment on a code learning site:
#include
int main() {
int age, height;
bool hasAdult;
std::cin >> age >> height >> hasAdult; // Don't change this line
// Write your code below
if (age >= 12) {
if(height > 150) {
if(hasAdult = true) {
print("You can ride with adult supervision!");
}
}
}
}
when run, the following output is shown:
error: 'print' was not declared in this scope; did you mean 'printf'?
print("You can ride with adult supervision!");
^~~~~
printf how do I "declare" print?