记录详情

Compile Error

/in/foo.cc: In function 'void meet_in_the_middle(const std::vector<int>&, std::vector<std::__cxx11::basic_string<char> >*, state)':
/in/foo.cc:99:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0; i < initial_letters.size(); i++) {
                    ~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In lambda function:
/in/foo.cc:114:22: error: expected unqualified-id before '[' token
             for(auto [now, cnt]: mp)
                      ^
/in/foo.cc:114:22: error: expected ';' before '[' token
/in/foo.cc:114:23: error: 'now' was not declared in this scope
             for(auto [now, cnt]: mp)
                       ^~~
/in/foo.cc:114:28: error: 'cnt' was not declared in this scope
             for(auto [now, cnt]: mp)
                            ^~~
/in/foo.cc: In lambda function:
/in/foo.cc:114:32: error: expected '{' before ':' token
             for(auto [now, cnt]: mp)
                                ^
/in/foo.cc: In lambda function:
/in/foo.cc:114:32: error: expected ';' before ':' token
/in/foo.cc:114:32: error: expected primary-expression before ':' token
/in/foo.cc:114:32: error: expected ')' before ':' token
/in/foo.cc:114:32: error: expected primary-expression before ':' token
/in/foo.cc:112:17: warning: unused variable 'c' [-Wunused-variable]
         for(int c : initial_letters_half) {
                 ^
/in/foo.cc: In function 'void meet_in_the_middle(const std::vector<int>&, std::vector<std::__cxx11::basic_string<char> >*, state)':
/in/foo.cc:177:33: warning: unused variable 'cnt' [-Wunused-variable]
      auto state = _.first; auto cnt = _.second; 
                                 ^~~

信息

递交者
类型
递交
题目
P1397 Problem 3D 密码破译
比赛
悬赏令第三周
语言
C++
递交时间
2023-05-09 17:20:42
评测时间
2023-05-12 20:53:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes