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