0_0_38458647_9576.cpp: In function 'void solve()': 0_0_38458647_9576.cpp:83:8: error: 'else' without a previous 'if' else if(ch[0]=='D'){ ^