I only know c++, so forgive me if I'm wrong, but as far as I know the operator += is shorthand for = number +, so your line equals count = count +; which gives a compile error.
You should replace the line to count++; if you want to add 1 or count+=(another number);
Now I should note that the number is already given as a parameter so you don't really need to ask for it again.
I only know c++, so forgive me if I'm wrong, but as far as I know the operator
+=
is shorthand for= number +
, so your line equalscount = count +;
which gives a compile error.You should replace the line to
count++;
if you want to add 1 orcount+=(another number);
Now I should note that the number is already given as a parameter so you don't really need to ask for it again.
This comment is hidden because it contains spoiler information about the solution