ogledala.cpp: In constructor 'lin::lin(ll, int, ll)':
ogledala.cpp:10:6: warning: 'lin::idx' will be initialized after [-Wreorder]
int idx;
^
ogledala.cpp:9:10: warning: 'll lin::num' [-Wreorder]
ll len, num;
^
ogledala.cpp:11:2: warning: when initialized here [-Wreorder]
lin(ll l, int i, ll n):len(l),idx(i),num(n){}
^
ogledala.cpp: At global scope:
ogledala.cpp:25:9: error: 'hash' is not a class template
struct hash<pll> {
^
ogledala.cpp:25:19: error: explicit specialization of non-template 'std::hash'
struct hash<pll> {
^
ogledala.cpp: In member function 'std::size_t std::hash::operator()(const pll&) const':
ogledala.cpp:26:51: error: 'std::hash' is not a template
size_t operator () (const pll &A) const {return hash<ll>()(A.first)^(hash<ll>()(A.second)<<1);}
^
ogledala.cpp:26:69: error: no match for call to '(std::hash) (const long long int&)'
size_t operator () (const pll &A) const {return hash<ll>()(A.first)^(hash<ll>()(A.second)<<1);}
^
ogledala.cpp:26:10: note: candidate: std::size_t std::hash::operator()(const pll&) const
size_t operator () (const pll &A) const {return hash<ll>()(A.first)^(hash<ll>()(A.second)<<1);}
^
ogledala.cpp:26:10: note: no known conversion for argument 1 from 'const long long int' to 'const pll& {aka const std::pair<long long int, long long int>&}'
ogledala.cpp:26:72: error: 'std::hash' is not a template
size_t operator () (const pll &A) const {return hash<ll>()(A.first)^(hash<ll>()(A.second)<<1);}
^
ogledala.cpp:26:91: error: no match for call to '(std::hash) (const long long int&)'
size_t operator () (const pll &A) const {return hash<ll>()(A.first)^(hash<ll>()(A.second)<<1);}
^
ogledala.cpp:26:10: note: candidate: std::size_t std::hash::operator()(const pll&) const
size_t operator () (const pll &A) const {return hash<ll>()(A.first)^(hash<ll>()(A.second)<<1);}
^
ogledala.cpp:26:10: note: no known conversion for argument 1 from 'const long long int' to 'const pll& {aka const std::pair<long long int, long long int>&}'
ogledala.cpp: At global scope:
ogledala.cpp:30:1: error: 'unordered_map' does not name a type
unordered_map<pll,ll> gt;
^
ogledala.cpp: In function 'll g(ll, ll)':
ogledala.cpp:33:6: error: 'gt' was not declared in this scope
if (gt.find(pll(n,k))!=gt.end()) return gt[pll(n,k)];
^
ogledala.cpp:35:10: error: 'gt' was not declared in this scope
return (gt[pll(n,k)] = g(n-1-n/2,k)+g(n/2,k));
^
ogledala.cpp: In function 'int main()':
ogledala.cpp:84:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(p<que.size()&&que[p]<=cnt+tmp.num) {
^
ogledala.cpp:87:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (p==que.size()) break;
^
ogledala.cpp:55:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld%lld",&m,&n,&q);
^
ogledala.cpp:58:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&a[i]); a[i]--;
^
ogledala.cpp:69:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&v);
^