Problem lis
User XiYangYang
Submission Time 2026-01-24 01:04:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp: In function ‘int main()’:
lis.cpp:4:2: error: ‘ios_base’ has not been declared
4 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
lis.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin.tie(NULL);
| ^~~
lis.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
lis.cpp:5:10: error: ‘NULL’ was not declared in this scope
5 | cin.tie(NULL);
| ^~~~
lis.cpp:1:1: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
+++ |+#include <cstddef>
1 | using namespace std;
lis.cpp:8:2: error: ‘vector’ was not declared in this scope
8 | vector<int> values(n,0)
| ^~~~~~
lis.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++