prog.cpp: In function 'int main()':
prog.cpp:16:9: error: 'cout' was not declared in this scope
cout<<"Enter the number/n";
^
prog.cpp:16:9: note: suggested alternative:
In file included from prog.cpp:9:0:
/usr/include/c++/5/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
prog.cpp:17:9: error: 'cin' was not declared in this scope
cin>>n;
^
prog.cpp:17:9: note: suggested alternative:
In file included from prog.cpp:9:0:
/usr/include/c++/5/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
prog.cpp:19:17: error: a function-definition is not allowed here before '{' token
{ if(n==2);
^
prog.cpp:36:1: error: expected '}' at end of input
}
^