Your first 2 errors appear to indicate that you did not import the Scanner class. The rest are related to inconsistencies in your code, like:

It's not clear how the 4 parts you posted go...