0_0_17496124_18558.cpp: In function 'int main()': 0_0_17496124_18558.cpp:31:4: error: 'sum' was not declared in this scope sum+=a[i]; ^