Main.cc: In function ‘int main()’: Main.cc:9:17: error: ‘t’ was not declared in this scope cin>>k;b[k]++;t++; ^