0_0_19399015_31382.cpp: In function 'int main()': 0_0_19399015_31382.cpp:13:45: error: 'else' without a previous 'if' for(i=1;i<=N;i++){scanf("%d",&C[i]);else sum[i]=sum[i-1]+C[i];} ^