Skip to content

Commit 0083cbf

Browse files
committed
compilation error fixed
1 parent 3dbf017 commit 0083cbf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dynamic_programming/longest_increasing_subsequence_(nlogn).cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// tested on : https://cses.fi/problemset/task/1145/
44

55
#include <iostream>
6-
6+
#include <set>
77
using namespace std;
88
int LIS(int arr[], int n) {
99
set<int> active; // The current built LIS.
@@ -29,10 +29,8 @@ int LIS(int arr[], int n) {
2929
}
3030
int main(int argc, char const* argv[]) {
3131
int n;
32-
cout << "Enter size of array: ";
3332
cin >> n;
3433
int a[n];
35-
cout << "Enter array elements: ";
3634
for (int i = 0; i < n; ++i) {
3735
cin >> a[i];
3836
}

0 commit comments

Comments
 (0)