Problem nis
User DoubleShaurya
Submission Time 2024-02-26 17:41:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nis.cpp: In function ‘long long int countLIS(std::vector<long long int>&)’:
nis.cpp:22:10: error: ‘pow’ was not declared in this scope
22 | return pow(2, maxLength) % 1000000007;
| ^~~
nis.cpp: In function ‘int main()’:
nis.cpp:27:3: error: ‘cin’ was not declared in this scope
27 | cin >> N;
| ^~~
nis.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <vector>
+++ |+#include <iostream>
2 |
nis.cpp:36:3: error: ‘cout’ was not declared in this scope
36 | cout << count % 1000000007;
| ^~~~
nis.cpp:36:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?