Main.cc: In function 'int main()':
Main.cc:12:3: error: 'tpx' was not declared in this scope
tpx[p]++;//投给谁,就在谁的投票箱上+1
^
Main.cc:17:21: error: 'tpx' was not declared in this scope
for(int k=1;k<=tpx[j];k++)//投票箱有多少个,就输出几
^