Unable to Submit Java Code

Run Code gives correct output but submission gives following compile error:

Compiling failed with exitcode 255, compiler output:
/home/omerjerk/domjudge/judgehost/bin/runguard: creating cgroup: Cgroup, requested group parameter does not exist(50015)
Try `/home/omerjerk/domjudge/judgehost/bin/runguard --help’ for more information.
Error: failed to set /sys/fs/cgroup/memory/domjudge/dj_cgroup_5634/memory.memsw.limit_in_bytes: Cgroup, requested group parameter does not exist

Hi Aditya,
Share your code.

import java.util.*; public class Main { public static void main(String args[]) { Scanner s=new Scanner(System.in); int n=s.nextInt()-1; System.out.println(1); for(int i=1;i<=n;i++){ System.out.print(i+1); for(int j=0;j<i-1;j++){ System.out.print(0); } System.out.println(i+1); } } }

Hi Aditya,
Your code is not right for hollow rhombus pattern against which you have raised the doubt as your code for n = 5 gives output :
1
22
303
4004
50005

where as it should give output :
*****


I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.