Problem lis
User NikhilK
Submission Time 2024-02-27 09:58:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp:4:1: error: ‘define’ does not name a type
4 | define int long long
| ^~~~~~
lis.cpp: In function ‘int main()’:
lis.cpp:21:1: error: ‘ios_base’ has not been declared
21 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
lis.cpp:22:1: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
22 | cin.tie(0);
| ^~~
| std::cin
In file included from lis.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
lis.cpp:31:18: error: ‘longestIncreasingSubsequence’ was not declared in this scope
31 | int result = longestIncreasingSubsequence(nums);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~