/ new_bzoj /

记录详情

Compile Error

/in/foo.cc: In function 'll eval(std::__cxx11::string)':
/in/foo.cc:47:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<s.size();){
              ~^~~~~~~~~
/in/foo.cc:51:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    while(i<s.size()&&(s[i]>='0'&&s[i]<='9'))
          ~^~~~~~~~~
/in/foo.cc: In lambda function:
/in/foo.cc:100:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(;pos<P.size();){
        ~~~^~~~~~~~~
/in/foo.cc:104:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     while(pos<P.size()&&(P[pos]>='a'&&P[pos]<='z'))
           ~~~^~~~~~~~~
/in/foo.cc: In function 'void solve()':
/in/foo.cc:112:46: error: use of 'auto' in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
  auto calc=[&](ve<std::string>&v,int L,int R,auto self)->int{
                                              ^~~~
/in/foo.cc: In lambda function:
/in/foo.cc:131:28: error: 'self' cannot be used as a function
      if(self(v,l+1,r-1,self)==-1)
                            ^
/in/foo.cc: In function 'void solve()':
/in/foo.cc:142:26: error: no match for call to '(solve()::<lambda(std::vector<std::__cxx11::basic_string<char> >&, int, int, int)>) (std::vector<std::__cxx11::basic_string<char> >&, int, std::vector<std::__cxx11::basic_string<char> >::size_type, solve()::<lambda(std::vector<std::__cxx11::basic_string<char> >&, int, int, int)>&)'
  calc(v,1,v.size()-2,calc);
                          ^
/in/foo.cc:112:58: note: candidate: solve()::<lambda(std::vector<std::__cxx11::basic_string<char> >&, int, int, int)>
  auto calc=[&](ve<std::string>&v,int L,int R,auto self)->int{
                                                          ^~~
/in/foo.cc:112:58: note:   no known conversion for argument 4 from 'solve()::<lambda(std::vector<std::__cxx11::basic_string<char> >&, int, int, int)>' to 'int'

信息

递交者
类型
递交
题目
沙漠寻宝
语言
C++
递交时间
2025-01-18 07:30:40
评测时间
2025-01-18 07:30:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes