doktor.cpp: In function 'int main()':
doktor.cpp:2:5: error: 'ios_base' has not been declared
2 | ios_base::sync_with_stdio(0);
| ^~~~~~~~
doktor.cpp:3:5: error: 'cin' was not declared in this scope
3 | cin.tie(0); cout.tie(0);
| ^~~
doktor.cpp:3:22: error: 'cout' was not declared in this scope
3 | cin.tie(0); cout.tie(0);
| ^~~~
doktor.cpp:4:5: error: 'll' was not declared in this scope
4 | ll n;cin>>n;
| ^~
doktor.cpp:4:15: error: 'n' was not declared in this scope
4 | ll n;cin>>n;
| ^
doktor.cpp:5:5: error: 'vector' was not declared in this scope
5 | vector<ll>arr(n);
| ^~~~~~
doktor.cpp:5:15: error: 'arr' was not declared in this scope
5 | vector<ll>arr(n);
| ^~~
doktor.cpp:11:13: error: 'reverse' was not declared in this scope
11 | reverse(arr.begin()+i,arr.begin()+j+1);
| ^~~~~~~
doktor.cpp:12:15: error: expected ';' before 'cnt'
12 | ll cnt=0;
| ^~~~
| ;
doktor.cpp:13:19: error: expected ';' before 'k'
13 | for(ll k=i;k<=j;k++){
| ^~
| ;
doktor.cpp:13:24: error: 'k' was not declared in this scope
13 | for(ll k=i;k<=j;k++){
| ^
doktor.cpp:14:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
14 | cnt+=(arr[k]==k+1);
| ^~~
| int
doktor.cpp:16:16: error: 'cnt' was not declared in this scope; did you mean 'int'?
16 | if(cnt>mx){
| ^~~
| int
doktor.cpp:23:32: error: 'endl' was not declared in this scope
23 | cout<<arr[x]<<" "<<arr[y]<<endl;
| ^~~~