第6行你定义的变量叫scenner,不是scanner。写错了哈
Scanner sc(自定义)= new Scanner(System.in); 声明变量=sc.nextInt(); 比如 int a=sc.nextInt();
第7行:n=scenner.nextInt();