Main.cc:1:1: error: 'include' does not name a type include ^ Main.cc: In function 'int main()': Main.cc:5:15: error: 'scanf' was not declared in this scope scanf("%d",&y); ^ Main.cc:7:19: error: 'printf' was not declared in this scope printf("%d\n",ans); ^