/ Vijos / 讨论 / Vijos /

关于评测机ShadowShore的编译参数问题

在Wiki中可以看到编译命令:
G++: g++ -O2 -s -Wall -std=c++11 -o foo.exe foo.cpp -lm
但似乎ShadowShore并没有开-std=c++11
(于P1000 使用<regex>库进行的测试)
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\regex:35:0,
from foo.cpp:2:
c:\mingw\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.
~~//虽然即使加了NOI系列也用不了。。。~~

2 条评论

  • @ 2016-08-08 01:59:59

    您好,ShadowShore的编译参数已经修改。希望您在Vijos刷题愉快(^v^)

    • @ 2016-08-08 11:28:59

      c++应用cmath库是会报错

      In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\cmath:44:0,
      from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\random:38,
      from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:65,
      from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
      from foo.cpp:6:
      c:\mingw\include\math.h: In function 'float hypotf(float, float)':
      c:\mingw\include\math.h:635:30: error: '_hypot' was not declared in this scope
      { return (float)(_hypot (x, y)); }

      卡了我两道题啊。我的RP。。。

  • @ 2016-07-21 03:45:42

    ShadowShore 似乎 没有按照要求配置

  • 1