Main.cc: In function ‘int main()’: Main.cc:11:3: error: ‘tp’ was not declared in this scope tp += (a[x] == 0); ^~ Main.cc:11:3: note: suggested alternative: ‘tm’ tp += (a[x] == 0); ^~ tm