gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:8:2: error: 'multiset' was not declared in this scope
multiset < pair< long long,pair<long long,long long> > > st;
^
gap.cpp:8:2: note: suggested alternative:
In file included from /usr/include/c++/5/set:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:86,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_multiset.h:92:11: note: 'std::multiset'
class multiset
^
gap.cpp:8:13: error: 'pair' was not declared in this scope
multiset < pair< long long,pair<long long,long long> > > st;
^
gap.cpp:8:13: note: suggested alternative:
In file included from /usr/include/c++/5/bits/stl_algobase.h:64:0,
from /usr/include/c++/5/bits/char_traits.h:39,
from /usr/include/c++/5/ios:40,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/sstream:38,
from /usr/include/c++/5/complex:45,
from /usr/include/c++/5/ccomplex:38,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_pair.h:96:12: note: 'std::pair'
struct pair
^
gap.cpp:8:19: error: expected primary-expression before 'long'
multiset < pair< long long,pair<long long,long long> > > st;
^
gap.cpp:12:2: error: 'st' was not declared in this scope
st.insert({-(mx-mx),{mn,mx}});
^
gap.cpp:27:23: error: 'max' was not declared in this scope
ans = max(ans,a2-L);
^
gap.cpp:27:23: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
gap.cpp:29:20: error: 'max' was not declared in this scope
ans = max(ans,1);
^
gap.cpp:29:20: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
gap.cpp:31:20: error: 'max' was not declared in this scope
ans = max(ans,1);
^
gap.cpp:31:20: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
gap.cpp:34:23: error: 'max' was not declared in this scope
ans = max(ans,R-a3);
^
gap.cpp:34:23: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
gap.cpp:36:20: error: 'max' was not declared in this scope
ans = max(ans,1);
^
gap.cpp:36:20: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
gap.cpp:38:20: error: 'max' was not declared in this scope
ans = max(ans,1);
^
gap.cpp:38:20: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
gap.cpp:41:24: error: 'max' was not declared in this scope
ans = max(ans,a3-a2);
^
gap.cpp:41:24: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
gap.cpp:43:22: error: 'max' was not declared in this scope
ans = max(ans,R-L);
^
gap.cpp:43:22: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
gap.cpp:45:23: error: 'max' was not declared in this scope
ans = max(ans,a3-L);
^
gap.cpp:45:23: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
gap.cpp:47:23: error: 'max' was not declared in this scope
ans = max(ans,R-a2);
^
gap.cpp:47:23: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from gap.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^