check for extra brackets,semicolons if any plz share the code to identify the correct error also if you use if and else see that there should be no code between the ending of if and starting of else
example-
if()
{//code for if}
//no code here
else
{//code for else }