Main.cc: In function 'int main()':
Main.cc:10:5: error: expected ',' or ';' before 'if'
if(s[n-1]=='r' && s[n-2]=='e'){
^
Main.cc:14:5: error: 'else' without a previous 'if'
else if(s[n-1]=='y' && s[n-2]=='l'){
^
Main.cc:17:5: error: expected ';' before '}' token
}
^
Main.cc:21:5: error: expected ';' before '}' token
}
^