Main.cc: In function 'int main()': Main.cc:4:15: error: 'ans' was not declared in this scope int n;ans=1; ^ Main.cc:8:22: error: invalid operands of types 'int' and '' to binary 'operator<<' cout<