secret.cpp:3:1: error: 'unordered_map' does not name a type
unordered_map<unsigned long long,bool>CHK;
^~~~~~~~~~~~~
secret.cpp:4:1: error: 'unordered_map' does not name a type
unordered_map<unsigned long long,int>SEC;
^~~~~~~~~~~~~
secret.cpp: In function 'int Secret2(int, int)':
secret.cpp:13:8: error: 'CHK' was not declared in this scope
if(CHK[P])
^~~
secret.cpp:14:16: error: 'SEC' was not declared in this scope
return SEC[P];
^~~
secret.cpp:15:5: error: 'CHK' was not declared in this scope
CHK[P]=true;
^~~
secret.cpp:16:12: error: 'SEC' was not declared in this scope
return SEC[P]=Secret(X,Y);
^~~
secret.cpp: In function 'int Q(int, int)':
secret.cpp:35:10: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
A=Q(S+1>>1,F-1>>1);
~^~
secret.cpp:35:17: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
A=Q(S+1>>1,F-1>>1);
~^~