/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:13: error: '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> > >::value_type {aka class std::__cxx11::basic_string<char>}' has no member named 'contains'
    if (S[i].contains(S[j])
             ^~~~~~~~
/in/foo.cc:17:5: error: expected ')' before 'dp'
     dp[i] = max(dp[i], dp[j] + 1);
     ^~

信息

递交者
类型
自测
题目
P1028 魔族密码
语言
C++
递交时间
2024-12-30 20:23:34
评测时间
2024-12-30 20:23:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes