/ Vijos /

记录详情

Compile Error

In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\unordered_set:35:0,
                 from foo.cpp:12:
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.
 #error This file requires compiler and library support for the \
  ^
foo.cpp:29:12: error: 'unordered_map' was not declared in this scope
     vector<unordered_map<char,ll>> sta;
            ^
foo.cpp:29:36: error: template argument 1 is invalid
     vector<unordered_map<char,ll>> sta;
                                    ^
foo.cpp:29:36: error: template argument 2 is invalid
foo.cpp:30:12: error: 'unordered_map' was not declared in this scope
     vector<unordered_map<char,ll>> end;
            ^
foo.cpp:30:36: error: template argument 1 is invalid
     vector<unordered_map<char,ll>> end;
                                    ^
foo.cpp:30:36: error: template argument 2 is invalid
foo.cpp:31:12: error: 'unordered_map' was not declared in this scope
     vector<unordered_map<char,ll>> nxt;
            ^
foo.cpp:31:36: error: template argument 1 is invalid
     vector<unordered_map<char,ll>> nxt;
                                    ^
foo.cpp:31:36: error: template argument 2 is invalid
foo.cpp: In constructor 'SuffixTree::SuffixTree(ll)':
foo.cpp:52:13: error: 'sta' was not declared in this scope
             sta=vector<unordered_map<char,ll>>(est_nodecnt);
             ^
foo.cpp:52:24: error: 'unordered_map' was not declared in this scope
             sta=vector<unordered_map<char,ll>>(est_nodecnt);
                        ^
foo.cpp:52:59: error: template argument 1 is invalid
             sta=vector<unordered_map<char,ll>>(est_nodecnt);
                                                           ^
foo.cpp:52:59: error: template argument 2 is invalid
foo.cpp:53:13: error: 'end' was not declared in this scope
             end=vector<unordered_map<char,ll>>(est_nodecnt);
             ^
foo.cpp:53:59: error: template argument 1 is invalid
             end=vector<unordered_map<char,ll>>(est_nodecnt);
                                                           ^
foo.cpp:53:59: error: template argument 2 is invalid
foo.cpp:54:13: error: 'nxt' was not declared in this scope
             nxt=vector<unordered_map<char,ll>>(est_nodecnt);
             ^
foo.cpp:54:59: error: template argument 1 is invalid
             nxt=vector<unordered_map<char,ll>>(est_nodecnt);
                                                           ^
foo.cpp:54:59: error: template argument 2 is invalid
foo.cpp: In member function 'll SuffixTree::_newnode()':
foo.cpp:64:13: error: 'sta' was not declared in this scope
             sta[newi].clear();
             ^
foo.cpp:65:13: error: 'end' was not declared in this scope
             end[newi].clear();
             ^
foo.cpp:66:13: error: 'nxt' was not declared in this scope
             nxt[newi].clear();
             ^
foo.cpp:69:9: error: 'sta' was not declared in this scope
         sta.emplace_back();
         ^
foo.cpp:70:9: error: 'end' was not declared in this scope
         end.emplace_back();
         ^
foo.cpp:71:9: error: 'nxt' was not declared in this scope
         nxt.emplace_back();
         ^
foo.cpp: In member function 'bool SuffixTree::_tryextend(ll)':
foo.cpp:80:17: error: 'sta' was not declared in this scope
             if (sta[act_node].find(chr)==sta[act_node].end()) return false;
                 ^
foo.cpp:87:24: error: 'nxt' was not declared in this scope
             ll nxtnode=nxt[act_node][act_br];
                        ^
foo.cpp:88:17: error: 'sta' was not declared in this scope
             if (sta[nxtnode].find(chr)==sta[nxtnode].end()) return false;
                 ^
foo.cpp:95:18: error: 'sta' was not declared in this scope
         ll start=sta[act_node][act_br];
                  ^
foo.cpp: In member fun

信息

递交者
类型
递交
题目
P1567 子串计数
语言
C++
递交时间
2016-01-21 10:21:56
评测时间
2016-01-21 10:21:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes