From 0083cbfd1a9c6bde2410d426892c84467142c689 Mon Sep 17 00:00:00 2001 From: Aadarsh Tiwari Date: Mon, 10 Oct 2022 11:46:39 +0530 Subject: [PATCH] compilation error fixed --- .../longest_increasing_subsequence_(nlogn).cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dynamic_programming/longest_increasing_subsequence_(nlogn).cpp b/dynamic_programming/longest_increasing_subsequence_(nlogn).cpp index 5bc72345c..edf56bdbc 100644 --- a/dynamic_programming/longest_increasing_subsequence_(nlogn).cpp +++ b/dynamic_programming/longest_increasing_subsequence_(nlogn).cpp @@ -3,7 +3,7 @@ // tested on : https://cses.fi/problemset/task/1145/ #include - +#include using namespace std; int LIS(int arr[], int n) { set active; // The current built LIS. @@ -29,10 +29,8 @@ int LIS(int arr[], int n) { } int main(int argc, char const* argv[]) { int n; - cout << "Enter size of array: "; cin >> n; int a[n]; - cout << "Enter array elements: "; for (int i = 0; i < n; ++i) { cin >> a[i]; }