Main.cc: In function 'int main()': Main.cc:12:26: error: expected primary-expression before ')' token if(s[i]=='e'&&s[n]=='r'&&){ ^