0_0_20843006_7156.cpp: In function 'int main()': 0_0_20843006_7156.cpp:27:15: error: 'p' was not declared in this scope sum2+=p[strlen(p)-1]-48; ^