求大佬帮忙看一眼为什么CE
  • 板块灌水区
  • 楼主_LiHX
  • 当前回复9
  • 已保存回复9
  • 发布时间2022/3/26 20:31
  • 上次更新2023/10/28 05:29:11
查看原帖
求大佬帮忙看一眼为什么CE
340137
_LiHX楼主2022/3/26 20:31
#include <iostream>
#include <stdio.h>
#include <math.h>
#include <algorithm>
#define ll long long
#define __debug(x) printf("[DEBUG] %d\n",x);
#define gc getchar();

using namespace std;

ll read()
{
    ll ans=0 , flag=1;
    char a=gc;
    while(a<'0' || a>'9')
    {
        if(a=='-')  flag*=-1;
        a=gc;
    }
    while(a>='0'&&a<='9')
    {
        ans = (ans<<1) + (ans<<3) + (a-'0');
        a=gc;
    }
    return ans*flag;
}

int t  , n ;
int a[50050][50050] ;
bool flag=1;

void input()
{
    t=read();
    return;
}

void work()
{
    while(t--)
    {
        n=read();
        for(int i=1;i<=n;i++)
        {
            a[i][0]=read();
            for(int j=1;j<=a[i][0];j++)
            {
                a[i][j]=read();
            }
        }
        printf("NO\n");
    }
    return;
}

int main()
{
    input();
    work();
    return 0;
}

这份代码CE了,帮忙看一眼

编译信息:编译失败

No valid executable file was produced by the compiler
./ccVlgD6U.o: in function `_GLOBAL__sub_I_src':
src:(.text.startup+0x27): relocation truncated to fit: R_X86_64_PC32 against `.bss'
src:(.text.startup+0x41): relocation truncated to fit: R_X86_64_PC32 against `.bss'
collect2: 错误:ld 返回 1
2022/3/26 20:31
加载中...