0_0_26551965_4017.cpp: In function 'int main()': 0_0_26551965_4017.cpp:19:17: error: 'a' was not declared in this scope a+=s[k]; ^