0_0_21944193_30938.cpp: In function 'int main()': 0_0_21944193_30938.cpp:30:3: error: 'sum' was not declared in this scope sum = 0; ^