Problem pascal
User DoubleShaurya
Submission Time 2024-01-25 07:44:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pascal.cpp: In function ‘int factorial(int)’:
pascal.cpp:6:5: error: expected ‘,’ or ‘;’ before ‘if’
6 | if (n < 0) {
| ^~
pascal.cpp:9:5: error: ‘else’ without a previous ‘if’
9 | else {
| ^~~~