#include <iostream> using namespace std; int main() { c) if (gender == 1) cout <<"Wood"<<endl; else; cout<<"Redwood"<<endl; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:5:1: error: ‘c’ was not declared in this scope c) if (gender == 1) cout <<"Wood"<<endl; else; cout<<"Redwood"<<endl; ^ prog.cpp:5:42: error: ‘else’ without a previous ‘if’ c) if (gender == 1) cout <<"Wood"<<endl; else; cout<<"Redwood"<<endl; ^~~~
Standard output is empty