0_0_26381998_10185.cpp: In function 'int main()': 0_0_26381998_10185.cpp:50:4: error: 'charsum' was not declared in this scope charsum=(1+p[j].num)*p[j].num/2; ^