玄学:Runtime Error - Aborted

学术版

unsigned_char @ 2024-11-28 17:25:15

以下代码使用 GCC -std=c++14 选项编译会导致 RE (本机 Segment Fault,OJ Aborted),而使用 -std=c++17 或者更高标准则不会出现问题;使用 Clang++ 无论是否开启 -std=c++14 都不会出现问题

这究竟是我代码的问题还是编译器/标准库的问题?

代码如下,大致思路是实现动态开点权值线段树,包括单点修改和区间查询操作

#include <iostream>
#include <vector>
using namespace std;

const int N = 1e9;
const int MAXN = 101;  // 55pts

class maxSegTree
{
    struct Node
    {
        int val;
        int ls, rs;
        Node() : val(0), ls(-1), rs(-1) {};
    };
    vector<Node> pool;
    int head;
    void push_up(int now)
    {
        pool[now].val = 0;
        if (pool[now].ls != -1)
            pool[now].val = max(pool[now].val, pool[pool[now].ls].val);
        if (pool[now].rs != -1)
            pool[now].val = max(pool[now].val, pool[pool[now].rs].val);
    }
    int modify(int idx, int val, int s, int t, int now)
    {
        if (now == -1)
        {
            pool.push_back(Node());
            now = pool.size() - 1;
        }
        if (s == t)
        {
            pool[now].val = val;
            return now;
        }
        int mid = (s + t) / 2;
        if (idx <= mid)
            pool[now].ls = modify(idx, val, s, mid, pool[now].ls);
        else
            pool[now].rs = modify(idx, val, mid + 1, t, pool[now].rs);
        push_up(now);
        return now;
    }
    int query(int l, int r, int s, int t, int now)
    {
        if (now == -1)
            return 0;
        if (s >= l && t <= r)
            return pool[now].val;
        int mid = (s + t) / 2;
        int ans = 0;
        if (l <= mid)
            ans = max(ans, query(l, r, s, mid, pool[now].ls));
        if (r > mid)
            ans = max(ans, query(l, r, mid + 1, t, pool[now].rs));
        return ans;
    }
public:
    // void modify(int idx, int val) { head = modify(idx, val, 1, N, head); }
    void modify(int idx, int val) { head = modify(idx, val, 1, N, head); }
    int query(int l, int r)       { return query(l, r, 1, N, head); }
    maxSegTree() : head(-1)       {}
};

maxSegTree f[MAXN][2];
// f[0]: b[i] > b[i - 1], f[1]: b[i] < b[i - 1]
// f[1] <- f[0]: query max[v + 1, N] + 1
// f[0] <- f[1]: query max[1, v - 1] + 1

void solve(int n, int q)
{
    while (q--)
    {
        int op;
        cin >> op;
        if (op == 1)
        {
            int l, r, x;
            cin >> l >> r >> x;
            for (int i = l; i <= r; ++i)
            {
                const int v1 = f[i][0].query(x + 1, N);
                const int v2 = f[i][1].query(1, x - 1);
                f[i][1].modify(x, v1 + 1);
                f[i][0].modify(x, v2 + 1);
            }
        }
        if (op == 2)
        {
            int t;
            cin >> t;
            cout << max(f[t][0].query(1, N), f[t][1].query(1, N)) << "\n";
        }
    }
}

by Estrella_Explore @ 2024-11-28 18:06:36

@unsigned_char

定位到错误点了,在 modify 里面

pool[now].ls = modify(idx, val, s, mid, pool[now].ls);

by Estrella_Explore @ 2024-11-28 18:08:56

@unsigned_char

有一点很令人奇怪的是,好像具体报错是因为调用了 malloc,而且用 gdb step in 也是最后停在了某个标准库里

然而您没有对内存进行什么手动的管理,很玄学啊很玄学,我继续看看


by Estrella_Explore @ 2024-11-28 18:30:10

@unsigned_char

对于这个样例,您调用了 15 次 modify,但是就在最后一次返回的时候 报 heap-use-after-free


by unsigned_char @ 2024-11-28 18:45:45

@Estrella_Explore 感觉就是很玄学,我怀疑是 GCC 的标准库实现有问题


by Estrella_Explore @ 2024-11-28 18:49:47

@unsigned_char

静态查错立大功

modify 的第一行插一行这个

cout << "modifying idx=" << idx << " at node " << now << ", val=" << val << endl;

然后依托输出

modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1

by Estrella_Explore @ 2024-11-28 18:56:37

@unsigned_char

c++17 没有问题,gnu++14 和 c++14 都炸


by Estrella_Explore @ 2024-11-28 18:59:27

@unsigned_char

不一定是实现有问题,我查了一下,c++17 对于移动语义有不少改变,可能是这里的行为不一样

附 c++17 正常输出

❯ ./b.out
0
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=2 at node -1, val=1
modifying idx=4 at node 0, val=1
modifying idx=4 at node 1, val=1
modifying idx=4 at node 2, val=1
modifying idx=4 at node 3, val=1
modifying idx=4 at node 4, val=1
modifying idx=4 at node 5, val=1
modifying idx=4 at node 6, val=1
modifying idx=4 at node 7, val=1
modifying idx=4 at node 8, val=1
modifying idx=4 at node 9, val=1
modifying idx=4 at node 10, val=1
modifying idx=4 at node 11, val=1
modifying idx=4 at node 12, val=1
modifying idx=4 at node 13, val=1
modifying idx=4 at node 14, val=1
modifying idx=4 at node 15, val=1
modifying idx=4 at node 16, val=1
modifying idx=4 at node 17, val=1
modifying idx=4 at node 18, val=1
modifying idx=4 at node 19, val=1
modifying idx=4 at node 20, val=1
modifying idx=4 at node 21, val=1
modifying idx=4 at node 22, val=1
modifying idx=4 at node 23, val=1
modifying idx=4 at node 24, val=1
modifying idx=4 at node 25, val=1
modifying idx=4 at node 26, val=1
modifying idx=4 at node 27, val=1
modifying idx=4 at node 28, val=1
modifying idx=4 at node -1, val=1
modifying idx=4 at node -1, val=1
modifying idx=4 at node 0, val=2
modifying idx=4 at node 1, val=2
modifying idx=4 at node 2, val=2
modifying idx=4 at node 3, val=2
modifying idx=4 at node 4, val=2
modifying idx=4 at node 5, val=2
modifying idx=4 at node 6, val=2
modifying idx=4 at node 7, val=2
modifying idx=4 at node 8, val=2
modifying idx=4 at node 9, val=2
modifying idx=4 at node 10, val=2
modifying idx=4 at node 11, val=2
modifying idx=4 at node 12, val=2
modifying idx=4 at node 13, val=2
modifying idx=4 at node 14, val=2
modifying idx=4 at node 15, val=2
modifying idx=4 at node 16, val=2
modifying idx=4 at node 17, val=2
modifying idx=4 at node 18, val=2
modifying idx=4 at node 19, val=2
modifying idx=4 at node 20, val=2
modifying idx=4 at node 21, val=2
modifying idx=4 at node 22, val=2
modifying idx=4 at node 23, val=2
modifying idx=4 at node 24, val=2
modifying idx=4 at node 25, val=2
modifying idx=4 at node 26, val=2
modifying idx=4 at node 27, val=2
modifying idx=4 at node 28, val=2
modifying idx=4 at node -1, val=2
modifying idx=4 at node -1, val=2
modifying idx=4 at node 0, val=1
modifying idx=4 at node 1, val=1
modifying idx=4 at node 2, val=1
modifying idx=4 at node 3, val=1
modifying idx=4 at node 4, val=1
modifying idx=4 at node 5, val=1
modifying idx=4 at node 6, val=1
modifying idx=4 at node 7, val=1
modifying idx=4 at node 8, val=1
modifying idx=4 at node 9, val=1
modifying idx=4 at node 10, val=1
modifying idx=4 at node 11, val=1
modifying idx=4 at node 12, val=1
modifying idx=4 at node 13, val=1
modifying idx=4 at node 14, val=1
modifying idx=4 at node 15, val=1
modifying idx=4 at node 16, val=1
modifying idx=4 at node 17, val=1
modifying idx=4 at node 18, val=1
modifying idx=4 at node 19, val=1
modifying idx=4 at node 20, val=1
modifying idx=4 at node 21, val=1
modifying idx=4 at node 22, val=1
modifying idx=4 at node 23, val=1
modifying idx=4 at node 24, val=1
modifying idx=4 at node 25, val=1
modifying idx=4 at node 26, val=1
modifying idx=4 at node 27, val=1
modifying idx=4 at node 28, val=1
modifying idx=4 at node -1, val=1
modifying idx=4 at node -1, val=1
modifying idx=4 at node 0, val=2
modifying idx=4 at node 1, val=2
modifying idx=4 at node 2, val=2
modifying idx=4 at node 3, val=2
modifying idx=4 at node 4, val=2
modifying idx=4 at node 5, val=2
modifying idx=4 at node 6, val=2
modifying idx=4 at node 7, val=2
modifying idx=4 at node 8, val=2
modifying idx=4 at node 9, val=2
modifying idx=4 at node 10, val=2
modifying idx=4 at node 11, val=2
modifying idx=4 at node 12, val=2
modifying idx=4 at node 13, val=2
modifying idx=4 at node 14, val=2
modifying idx=4 at node 15, val=2
modifying idx=4 at node 16, val=2
modifying idx=4 at node 17, val=2
modifying idx=4 at node 18, val=2
modifying idx=4 at node 19, val=2
modifying idx=4 at node 20, val=2
modifying idx=4 at node 21, val=2
modifying idx=4 at node 22, val=2
modifying idx=4 at node 23, val=2
modifying idx=4 at node 24, val=2
modifying idx=4 at node 25, val=2
modifying idx=4 at node 26, val=2
modifying idx=4 at node 27, val=2
modifying idx=4 at node 28, val=2
modifying idx=4 at node -1, val=2
modifying idx=4 at node -1, val=2
modifying idx=3 at node 0, val=3
modifying idx=3 at node 1, val=3
modifying idx=3 at node 2, val=3
modifying idx=3 at node 3, val=3
modifying idx=3 at node 4, val=3
modifying idx=3 at node 5, val=3
modifying idx=3 at node 6, val=3
modifying idx=3 at node 7, val=3
modifying idx=3 at node 8, val=3
modifying idx=3 at node 9, val=3
modifying idx=3 at node 10, val=3
modifying idx=3 at node 11, val=3
modifying idx=3 at node 12, val=3
modifying idx=3 at node 13, val=3
modifying idx=3 at node 14, val=3
modifying idx=3 at node 15, val=3
modifying idx=3 at node 16, val=3
modifying idx=3 at node 17, val=3
modifying idx=3 at node 18, val=3
modifying idx=3 at node 19, val=3
modifying idx=3 at node 20, val=3
modifying idx=3 at node 21, val=3
modifying idx=3 at node 22, val=3
modifying idx=3 at node 23, val=3
modifying idx=3 at node 24, val=3
modifying idx=3 at node 25, val=3
modifying idx=3 at node 26, val=3
modifying idx=3 at node 27, val=3
modifying idx=3 at node 28, val=3
modifying idx=3 at node 31, val=3
modifying idx=3 at node -1, val=3
modifying idx=3 at node 0, val=2
modifying idx=3 at node 1, val=2
modifying idx=3 at node 2, val=2
modifying idx=3 at node 3, val=2
modifying idx=3 at node 4, val=2
modifying idx=3 at node 5, val=2
modifying idx=3 at node 6, val=2
modifying idx=3 at node 7, val=2
modifying idx=3 at node 8, val=2
modifying idx=3 at node 9, val=2
modifying idx=3 at node 10, val=2
modifying idx=3 at node 11, val=2
modifying idx=3 at node 12, val=2
modifying idx=3 at node 13, val=2
modifying idx=3 at node 14, val=2
modifying idx=3 at node 15, val=2
modifying idx=3 at node 16, val=2
modifying idx=3 at node 17, val=2
modifying idx=3 at node 18, val=2
modifying idx=3 at node 19, val=2
modifying idx=3 at node 20, val=2
modifying idx=3 at node 21, val=2
modifying idx=3 at node 22, val=2
modifying idx=3 at node 23, val=2
modifying idx=3 at node 24, val=2
modifying idx=3 at node 25, val=2
modifying idx=3 at node 26, val=2
modifying idx=3 at node 27, val=2
modifying idx=3 at node 28, val=2
modifying idx=3 at node 31, val=2
modifying idx=3 at node -1, val=2
modifying idx=3 at node 0, val=1
modifying idx=3 at node 1, val=1
modifying idx=3 at node 2, val=1
modifying idx=3 at node 3, val=1
modifying idx=3 at node 4, val=1
modifying idx=3 at node 5, val=1
modifying idx=3 at node 6, val=1
modifying idx=3 at node 7, val=1
modifying idx=3 at node 8, val=1
modifying idx=3 at node 9, val=1
modifying idx=3 at node 10, val=1
modifying idx=3 at node 11, val=1
modifying idx=3 at node 12, val=1
modifying idx=3 at node 13, val=1
modifying idx=3 at node 14, val=1
modifying idx=3 at node 15, val=1
modifying idx=3 at node 16, val=1
modifying idx=3 at node 17, val=1
modifying idx=3 at node 18, val=1
modifying idx=3 at node 19, val=1
modifying idx=3 at node 20, val=1
modifying idx=3 at node 21, val=1
modifying idx=3 at node 22, val=1
modifying idx=3 at node 23, val=1
modifying idx=3 at node 24, val=1
modifying idx=3 at node 25, val=1
modifying idx=3 at node 26, val=1
modifying idx=3 at node 27, val=1
modifying idx=3 at node 28, val=1
modifying idx=3 at node -1, val=1
modifying idx=3 at node -1, val=1
modifying idx=3 at node 0, val=2
modifying idx=3 at node 1, val=2
modifying idx=3 at node 2, val=2
modifying idx=3 at node 3, val=2
modifying idx=3 at node 4, val=2
modifying idx=3 at node 5, val=2
modifying idx=3 at node 6, val=2
modifying idx=3 at node 7, val=2
modifying idx=3 at node 8, val=2
modifying idx=3 at node 9, val=2
modifying idx=3 at node 10, val=2
modifying idx=3 at node 11, val=2
modifying idx=3 at node 12, val=2
modifying idx=3 at node 13, val=2
modifying idx=3 at node 14, val=2
modifying idx=3 at node 15, val=2
modifying idx=3 at node 16, val=2
modifying idx=3 at node 17, val=2
modifying idx=3 at node 18, val=2
modifying idx=3 at node 19, val=2
modifying idx=3 at node 20, val=2
modifying idx=3 at node 21, val=2
modifying idx=3 at node 22, val=2
modifying idx=3 at node 23, val=2
modifying idx=3 at node 24, val=2
modifying idx=3 at node 25, val=2
modifying idx=3 at node 26, val=2
modifying idx=3 at node 27, val=2
modifying idx=3 at node 28, val=2
modifying idx=3 at node -1, val=2
modifying idx=3 at node -1, val=2
modifying idx=1 at node 0, val=3
modifying idx=1 at node 1, val=3
modifying idx=1 at node 2, val=3
modifying idx=1 at node 3, val=3
modifying idx=1 at node 4, val=3
modifying idx=1 at node 5, val=3
modifying idx=1 at node 6, val=3
modifying idx=1 at node 7, val=3
modifying idx=1 at node 8, val=3
modifying idx=1 at node 9, val=3
modifying idx=1 at node 10, val=3
modifying idx=1 at node 11, val=3
modifying idx=1 at node 12, val=3
modifying idx=1 at node 13, val=3
modifying idx=1 at node 14, val=3
modifying idx=1 at node 15, val=3
modifying idx=1 at node 16, val=3
modifying idx=1 at node 17, val=3
modifying idx=1 at node 18, val=3
modifying idx=1 at node 19, val=3
modifying idx=1 at node 20, val=3
modifying idx=1 at node 21, val=3
modifying idx=1 at node 22, val=3
modifying idx=1 at node 23, val=3
modifying idx=1 at node 24, val=3
modifying idx=1 at node 25, val=3
modifying idx=1 at node 26, val=3
modifying idx=1 at node 27, val=3
modifying idx=1 at node 28, val=3
modifying idx=1 at node 29, val=3
modifying idx=1 at node -1, val=3
modifying idx=1 at node 0, val=1
modifying idx=1 at node 1, val=1
modifying idx=1 at node 2, val=1
modifying idx=1 at node 3, val=1
modifying idx=1 at node 4, val=1
modifying idx=1 at node 5, val=1
modifying idx=1 at node 6, val=1
modifying idx=1 at node 7, val=1
modifying idx=1 at node 8, val=1
modifying idx=1 at node 9, val=1
modifying idx=1 at node 10, val=1
modifying idx=1 at node 11, val=1
modifying idx=1 at node 12, val=1
modifying idx=1 at node 13, val=1
modifying idx=1 at node 14, val=1
modifying idx=1 at node 15, val=1
modifying idx=1 at node 16, val=1
modifying idx=1 at node 17, val=1
modifying idx=1 at node 18, val=1
modifying idx=1 at node 19, val=1
modifying idx=1 at node 20, val=1
modifying idx=1 at node 21, val=1
modifying idx=1 at node 22, val=1
modifying idx=1 at node 23, val=1
modifying idx=1 at node 24, val=1
modifying idx=1 at node 25, val=1
modifying idx=1 at node 26, val=1
modifying idx=1 at node 27, val=1
modifying idx=1 at node 28, val=1
modifying idx=1 at node 29, val=1
modifying idx=1 at node -1, val=1
modifying idx=1 at node 0, val=3
modifying idx=1 at node 1, val=3
modifying idx=1 at node 2, val=3
modifying idx=1 at node 3, val=3
modifying idx=1 at node 4, val=3
modifying idx=1 at node 5, val=3
modifying idx=1 at node 6, val=3
modifying idx=1 at node 7, val=3
modifying idx=1 at node 8, val=3
modifying idx=1 at node 9, val=3
modifying idx=1 at node 10, val=3
modifying idx=1 at node 11, val=3
modifying idx=1 at node 12, val=3
modifying idx=1 at node 13, val=3
modifying idx=1 at node 14, val=3
modifying idx=1 at node 15, val=3
modifying idx=1 at node 16, val=3
modifying idx=1 at node 17, val=3
modifying idx=1 at node 18, val=3
modifying idx=1 at node 19, val=3
modifying idx=1 at node 20, val=3
modifying idx=1 at node 21, val=3
modifying idx=1 at node 22, val=3
modifying idx=1 at node 23, val=3
modifying idx=1 at node 24, val=3
modifying idx=1 at node 25, val=3
modifying idx=1 at node 26, val=3
modifying idx=1 at node 27, val=3
modifying idx=1 at node 28, val=3
modifying idx=1 at node 29, val=3
modifying idx=1 at node -1, val=3
modifying idx=1 at node 0, val=1
modifying idx=1 at node 1, val=1
modifying idx=1 at node 2, val=1
modifying idx=1 at node 3, val=1
modifying idx=1 at node 4, val=1
modifying idx=1 at node 5, val=1
modifying idx=1 at node 6, val=1
modifying idx=1 at node 7, val=1
modifying idx=1 at node 8, val=1
modifying idx=1 at node 9, val=1
modifying idx=1 at node 10, val=1
modifying idx=1 at node 11, val=1
modifying idx=1 at node 12, val=1
modifying idx=1 at node 13, val=1
modifying idx=1 at node 14, val=1
modifying idx=1 at node 15, val=1
modifying idx=1 at node 16, val=1
modifying idx=1 at node 17, val=1
modifying idx=1 at node 18, val=1
modifying idx=1 at node 19, val=1
modifying idx=1 at node 20, val=1
modifying idx=1 at node 21, val=1
modifying idx=1 at node 22, val=1
modifying idx=1 at node 23, val=1
modifying idx=1 at node 24, val=1
modifying idx=1 at node 25, val=1
modifying idx=1 at node 26, val=1
modifying idx=1 at node 27, val=1
modifying idx=1 at node 28, val=1
modifying idx=1 at node 29, val=1
modifying idx=1 at node -1, val=1
modifying idx=1 at node 0, val=3
modifying idx=1 at node 1, val=3
modifying idx=1 at node 2, val=3
modifying idx=1 at node 3, val=3
modifying idx=1 at node 4, val=3
modifying idx=1 at node 5, val=3
modifying idx=1 at node 6, val=3
modifying idx=1 at node 7, val=3
modifying idx=1 at node 8, val=3
modifying idx=1 at node 9, val=3
modifying idx=1 at node 10, val=3
modifying idx=1 at node 11, val=3
modifying idx=1 at node 12, val=3
modifying idx=1 at node 13, val=3
modifying idx=1 at node 14, val=3
modifying idx=1 at node 15, val=3
modifying idx=1 at node 16, val=3
modifying idx=1 at node 17, val=3
modifying idx=1 at node 18, val=3
modifying idx=1 at node 19, val=3
modifying idx=1 at node 20, val=3
modifying idx=1 at node 21, val=3
modifying idx=1 at node 22, val=3
modifying idx=1 at node 23, val=3
modifying idx=1 at node 24, val=3
modifying idx=1 at node 25, val=3
modifying idx=1 at node 26, val=3
modifying idx=1 at node 27, val=3
modifying idx=1 at node 28, val=3
modifying idx=1 at node 29, val=3
modifying idx=1 at node -1, val=3
modifying idx=1 at node 0, val=1
modifying idx=1 at node 1, val=1
modifying idx=1 at node 2, val=1
modifying idx=1 at node 3, val=1
modifying idx=1 at node 4, val=1
modifying idx=1 at node 5, val=1
modifying idx=1 at node 6, val=1
modifying idx=1 at node 7, val=1
modifying idx=1 at node 8, val=1
modifying idx=1 at node 9, val=1
modifying idx=1 at node 10, val=1
modifying idx=1 at node 11, val=1
modifying idx=1 at node 12, val=1
modifying idx=1 at node 13, val=1
modifying idx=1 at node 14, val=1
modifying idx=1 at node 15, val=1
modifying idx=1 at node 16, val=1
modifying idx=1 at node 17, val=1
modifying idx=1 at node 18, val=1
modifying idx=1 at node 19, val=1
modifying idx=1 at node 20, val=1
modifying idx=1 at node 21, val=1
modifying idx=1 at node 22, val=1
modifying idx=1 at node 23, val=1
modifying idx=1 at node 24, val=1
modifying idx=1 at node 25, val=1
modifying idx=1 at node 26, val=1
modifying idx=1 at node 27, val=1
modifying idx=1 at node 28, val=1
modifying idx=1 at node 29, val=1
modifying idx=1 at node -1, val=1
3
3
3

by unsigned_char @ 2024-11-28 19:02:31

@Estrella_Explore 不好说吧,反正我 clang++-std=c++14 没问题


by Estrella_Explore @ 2024-11-28 19:05:57

@unsigned_char

我去 clang++ 真能过!!!


by Estrella_Explore @ 2024-11-28 19:07:52

@unsigned_char

GNU 出来受死!!!!!!!!

我调了 1h!

对着个****的 gdb 调了 1h!!!


上一页 | 下一页