Cannot find symbol error

Link: https://ide.codingblocks.com/s/143015
Kindly, tell me the reason behind this error.
Thanks!

Hi @Mayank2096,
Make int k =scn.nextInt(); instead of int k =scn.nextint();

And try to use import java.util.*; (imports all classes) as the first line of your code.