Main.cc: In function 'int main()':
Main.cc:7:25: error: 'len' was not declared in this scope
if(a[lenn - 1]=='e'&&a[len - 1]=='r'){
^
Main.cc:10:8: error: 'len' was not declared in this scope
if(a[len - 2]=='l'&&a[len - 1]=='y'){
^