0_0_26587383_23452.cpp: In function 'int main()': 0_0_26587383_23452.cpp:28:11: error: 'num' was not declared in this scope ans += num[i]/2; ^