Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:27: error: 's' was not declared in this scope
   10 |                 cin>>a[i],s[i]=s[i-1]^a[i];
      |                           ^
/in/foo.cc:12:16: error: 'g' was not declared in this scope
   12 |         memset(g,0xcf,sizeof g);
      |                ^
/in/foo.cc:16:39: error: 's' was not declared in this scope
   16 |                 dp[i]=max(dp[i-1],g[k^s[i]]+1);
      |                                       ^

信息

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