Main.cc: In function 'int main()': Main.cc:11:15: error: 'num' was not declared in this scope cin>>num; ^