In file included from /usr/include/c++/4.9/unordered_map:35:0,
from xor.cpp:2:
/usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
xor.cpp:5:1: error: ‘map’ does not name a type
map<int,int>ch;
^
xor.cpp: In function ‘int main()’:
xor.cpp:24:17: error: ‘ch’ was not declared in this scope
ch[sum[j]]=j;
^
xor.cpp:26:49: error: ‘ch’ was not declared in this scope
for(j=1;j<=n;j++) dap[j]=max(dap[j],ch[sum[j-1]^t]);
^
xor.cpp:26:63: error: ‘max’ was not declared in this scope
for(j=1;j<=n;j++) dap[j]=max(dap[j],ch[sum[j-1]^t]);
^
xor.cpp:27:31: error: ‘ch’ was not declared in this scope
for(j=1;j<=n;j++) ch[sum[j]]=0;
^
xor.cpp:31:23: error: ‘ch’ was not declared in this scope
for(j=1;j<=n;j++) ch[sum[j]]=j;
^
xor.cpp:32:41: error: ‘ch’ was not declared in this scope
for(j=1;j<=n;j++) dap[j]=max(dap[j],ch[sum[j-1]^t]);
^
xor.cpp:32:55: error: ‘max’ was not declared in this scope
for(j=1;j<=n;j++) dap[j]=max(dap[j],ch[sum[j-1]^t]);
^
xor.cpp:10:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&x);
^
xor.cpp:11:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++) scanf("%d",&a[i]);
^