In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\unordered_set:35:0,
from foo.cpp:16:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\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 \
^
foo.cpp: In function 'std::pair<int, int> Solve(int*, int)':
foo.cpp:41:5: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
return {min(ans, ans^tmp), max(ans^tmp, ans)};
^
foo.cpp: In function 'int main()':
foo.cpp:49:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
auto ans=Solve(a, n);
^
foo.cpp:49:14: error: 'ans' does not name a type
auto ans=Solve(a, n);
^
foo.cpp:50:15: error: 'ans' was not declared in this scope
cout<<ans.first<<" "<<ans.second<<endl;
^