/ Vijos /

记录详情

Compile Error

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;
               ^

信息

递交者
类型
递交
题目
P1918 艾酱的卡牌
语言
C++
递交时间
2015-01-23 17:22:24
评测时间
2015-01-23 17:22:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes