Problem | lis_easy |
---|---|
User | baobaocar |
Submission Time | 2023-02-24 23:41:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:3:2: error: ‘cin’ was not declared in this scope
3 | cin >> N;
| ^~~
lis_easy.cpp:8:35: error: ‘max’ was not declared in this scope
8 | if (nums[j] < nums[i]) dp[i] = max(dp[i], dp[j] + 1);
| ^~~
lis_easy.cpp:12:36: error: ‘max’ was not declared in this scope
12 | for (int i = 0; i < N; ++i) sol = max(sol, dp[i]);
| ^~~
lis_easy.cpp:13:2: error: ‘cout’ was not declared in this scope
13 | cout << sol;
| ^~~~