Main.cc: In function 'int main()': Main.cc:5:4: error: expected initializer before 'scanf' scanf("%s",s); ^ Main.cc:6:19: error: 's' was not declared in this scope int len=strlen(s); ^