0_0_36861198_26567.cpp: In function 'int main()': 0_0_36861198_26567.cpp:46:4: error: expected ';' before 'if' if(str[0]=='Q') ^ 0_0_36861198_26567.cpp:48:4: error: 'else' without a previous 'if' else if(str[0]=='S') ^