QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#72635#13. RouterdoltCompile Error//C++988.3kb2023-01-17 09:47:242023-01-17 09:47:27

Details

answer.code: In member function ‘bool nfa::dfs(int, int, const string&, int)’:
answer.code:44:26: error: ‘e’ does not name a type
   44 |                 for(auto e:g[x])
      |                          ^
answer.code:49:17: error: expected ‘;’ before ‘return’
   49 |                 return false;
      |                 ^~~~~~
answer.code:49:17: error: expected primary-expression before ‘return’
answer.code:49:17: error: expected ‘;’ before ‘return’
answer.code:49:17: error: expected primary-expression before ‘return’
answer.code:49:17: error: expected ‘)’ before ‘return’
answer.code:44:20: note: to match this ‘(’
   44 |                 for(auto e:g[x])
      |                    ^
answer.code: In function ‘nfa infinity(const nfa&)’:
answer.code:136:25: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
  136 |         return merge_or({ret,nfa(0)});
      |                         ^
answer.code:136:24: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
  136 |         return merge_or({ret,nfa(0)});
      |                ~~~~~~~~^~~~~~~~~~~~~~
answer.code: In function ‘nfa Atom(const string&, int, int, pii)’:
answer.code:191:31: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
  191 |                 base=merge_or({base,nfa(0)});
      |                               ^
answer.code:191:30: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
  191 |                 base=merge_or({base,nfa(0)});
      |                      ~~~~~~~~^~~~~~~~~~~~~~~
answer.code:199:31: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
  199 |                 base=merge_or({base,nfa(0)});
      |                               ^
answer.code:199:30: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
  199 |                 base=merge_or({base,nfa(0)});
      |                      ~~~~~~~~^~~~~~~~~~~~~~~
answer.code: In member function ‘int node::try_regex(const string&, std::map<std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char> > >&)’:
answer.code:288:26: error: ‘v’ does not name a type
  288 |                 for(auto v:go_rgx)if(rgx[v.ff].match(tr))
      |                          ^
answer.code:293:17: error: expected ‘;’ before ‘return’
  293 |                 return -1;
      |                 ^~~~~~
answer.code:293:17: error: expected primary-expression before ‘return’
answer.code:293:17: error: expected ‘;’ before ‘return’
answer.code:293:17: error: expected primary-expression before ‘return’
answer.code:293:17: error: expected ‘)’ before ‘return’
answer.code:288:20: note: to match this ‘(’
  288 |                 for(auto v:go_rgx)if(rgx[v.ff].match(tr))
      |                    ^
answer.code: In function ‘void process_query()’:
answer.code:371:18: error: ‘v’ does not name a type
  371 |         for(auto v:para)
      |                  ^
answer.code:388:10: error: expected ‘;’ before ‘puts’
  388 |         }
      |          ^
      |          ;
  389 |         puts("}");
      |         ~~~~
answer.code:390:1: error: expected primary-expression before ‘}’ token
  390 | }
      | ^
answer.code:389:19: error: expected ‘)’ before ‘}’ token
  389 |         puts("}");
      |                   ^
      |                   )
  390 | }
      | ~                  
answer.code:371:12: note: to match this ‘(’
  371 |         for(auto v:para)
      |            ^
answer.code:390:1: error: expected primary-expression before ‘}’ token
  390 | }
      | ^
In file included from /usr/include/c++/11/bits/stl_algobase.h:65,
                 from /usr/include/c++/11/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from answer.code:1:
/usr/include/c++/11/bits/stl_iterator_base_types.h: In instantiation of ‘struct std::iterator_traits<nfa>’:
/usr/include/c++/11/bits/stl_iterator_base_types.h:238:5:   required by substitution of ‘template<class _Iter> typename std::iterator_traits< <template-parameter-1-1> >::iterator_category std::__iterator_category(const _Iter&) [with _Iter = nfa]’
/usr/include/c++/11/bits/stl_vector.h:1551:34:   required from ‘void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _InputIterator, std::__false_type) [with _InputIterator = nfa; _Tp = nfa; _Alloc = std::allocator<nfa>]’
/usr/include/c++/11/bits/stl_vector.h:668:26:   required from ‘std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = nfa; _Tp = nfa; _Alloc = std::allocator<nfa>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<nfa>]’
answer.code:136:17:   required from here
/usr/include/c++/11/bits/stl_iterator_base_types.h:184:53: error: no type named ‘iterator_category’ in ‘struct nfa’
  184 |       typedef typename _Iterator::iterator_category iterator_category;
      |  ...