For an infinite square well, beyond the walls ( including them ) are infinite potentials and the wavefunctions have to be zero when they hit the walls because of these boundary conditions. For such a case, how do you say whether the stationary states are bounded or not? In fact my confusion springs from the fact that when we solve the Schrodinger's equation we take
$$k = \sqrt{\frac{2mE}{\hbar^2}},$$
which automatically assumes $E \geq 0$ which I thought was the condition for scattering states. However it doesn't make sense to have scattering states for this case physically. So what is going on?