Problem history
User eulerleonhardfan
Submission Time 2023-01-25 10:05:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

history.cpp:4:27: error: use of parameter outside function body before ‘]’ token
4 | int findlis(int n, int a[n]) {
| ^
history.cpp: In function ‘long long int findlis(...)’:
history.cpp:5:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | int dp[n];
| ^
| yn
history.cpp:6:3: error: ‘dp’ was not declared in this scope
6 | dp[0] = 1;
| ^~
history.cpp:11:11: error: ‘a’ was not declared in this scope
11 | if (a[j] < a[i]) {
| ^