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