Pascal traingle

why it show error in submission
https://ide.codingblocks.com/s/43907

your logic is wrong,you missed the definition of pascal.
test case : 5
your output:
1
1 1
1 2 1
1 3 3 1
1 4 4 4 1
correct output:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1