0_0_13829170_13773.cpp: In function 'int main()': 0_0_13829170_13773.cpp:38:4: error: expected ';' before 'if' if((sum[y]-sum[x-1])==((1+y-x+1)*(y-x+1)/2)){ ^ 0_0_13829170_13773.cpp:43:4: error: 'else' without a previous 'if' else{ ^