rt.
我在写代码时,遇到了如下编译问题:
d:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lasan
collect2.exe: error: ld returned 1 exit status
代码:
#include <bits/stdc++.h>
using namespace std;
long long sum, n, m, c, mx, a[70], t[70];
void dfs(int x) {
if (x == n + 1) {
mx = max(mx, sum);
return;
}
dfs(x + 1);
sum ^= a[x];
dfs(x + 1);
}
int main() {
cin >> n >> m;
for (int i = 1; i <= n; i++) {
cin >> c;
for (int j = 1, x; j <= c; j++) {
cin >> x;
a[i] |= (1ll << (m - x));
}
}
dfs(1);
cout << mx;
return 0;
}
请问为什么会出现这样的问题?如何解决?