elephants.cpp:6:14: error: expected type-specifier before '*' token
6 | int *x = new(*int);
| ^
elephants.cpp:6:14: error: expected ')' before '*' token
6 | int *x = new(*int);
| ~^
| )
elephants.cpp:6:15: error: expected primary-expression before 'int'
6 | int *x = new(*int);
| ^~~
elephants.cpp: In function 'int update(int, int)':
elephants.cpp:54:28: error: too many arguments to function 'int solve()'
54 | int res = solve(n, l, x);
| ^
elephants.cpp:15:5: note: declared here
15 | int solve()
| ^~~~~