Problem optimalsubseq
User Tyx2019
Submission Time 2023-04-19 13:43:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

optimalsubseq.cpp:4:1: error: ‘include’ does not name a type
4 | include <ext/pb_ds/assoc_container.hpp>
| ^~~~~~~
optimalsubseq.cpp:9:17: error: ‘__gnu_pbds’ is not a namespace-name
9 | using namespace __gnu_pbds;
| ^~~~~~~~~~
optimalsubseq.cpp:10:1: error: ‘ordered_set’ does not name a type
10 | ordered_set<int> S;
| ^~~~~~~~~~~
optimalsubseq.cpp: In function ‘int main()’:
optimalsubseq.cpp:13:2: error: ‘ios_base’ has not been declared
13 | ios_base::sync_with_stdio(0);
| ^~~~~~~~
optimalsubseq.cpp:14:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
14 | cin.tie(0);
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from optimalsubseq.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard