Main.cc:1:1: error: 'include' does not name a type include ^ Main.cc: In function 'int main()': Main.cc:5:1: error: 'cin' was not declared in this scope cin.getline(a,1000000); ^ Main.cc:7:24: error: 'strlen' was not declared in this scope for(int i=0; i