[ad_1]
y = 0;
should be
int y = 0;
because y has not yet be declared at this point and you are defining a variable.
3
[ad_2]
solved ‘y’ was not declared in this scope,
[ad_1]
y = 0;
should be
int y = 0;
because y has not yet be declared at this point and you are defining a variable.
3
[ad_2]
solved ‘y’ was not declared in this scope,