Compile time error

The code seems fine to me but there seems to be a problem while using Scanner in main