Unable to compile the "java" code

The code is working fine on my laptop but on compiling the code here at (coding club ide) it is showing me errors, help me out to solve this issue.

Link to Ide: https://ide.codingblocks.com/s/334428

@himanshu_goyal
The code uses an infinite while loop as the condition is on the n variable which is never updated.

  1. Change loop condition to n>0
  2. Do a nā€“; statement inside the loop.

i have done the required changes in the code.

but still my program is not running as i encounter a compiler error.

Refer to the code: https://ide.codingblocks.com/s/346291

Done. Thank you, there was some other issue in the code and i had fixed it.