Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:15:43: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
   15 |                 dp[i]=max(dp[i-1],g[k^s[i]+1];
      |                                       ~~~~^~
/in/foo.cc:15:46: error: expected ')' before ';' token
   15 |                 dp[i]=max(dp[i-1],g[k^s[i]+1];
      |                          ~                   ^
      |                                              )

信息

递交者
类型
递交
题目
P2989 异或和
语言
C++
递交时间
2025-11-23 08:33:19
评测时间
2025-11-23 08:33:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes