一个以前没见过的CE
  • 板块P5461 赦免战俘
  • 楼主FuBi
  • 当前回复3
  • 已保存回复3
  • 发布时间2021/12/18 21:35
  • 上次更新2023/10/28 14:08:23
查看原帖
一个以前没见过的CE
180596
FuBi楼主2021/12/18 21:35
#include<bits/stdc++.h>
using namespace std;
const int mn = 10;
int a[1<<mn+10][1<<mn+10];
int n,j,i,p,q;
void sm(int x,int y,int m){
    if(m>=1){
    for(p = x;p<=x+1<<(m-1)-1;p++)
        for(q = y;q<=x+1<<(m-1)-1;q++)
            a[p][q] = 0;
    sm(x+1<<(m-1),y,m-1);
    sm(x,y+1<<(m-1),m-1);
    sm(x+1<<(m-1),y+1<<(m-1),m-1);
    }
    return;
}
int main(){
    cin>>n;
    for(i  = 1;i<=1<<n;i++)
        for(j = 1;j<=1<<n;j++)
            a[i][j] = 1;
    sm(1,1,n);
    for(i  = 1;i<=1<<n;i++){
        for(j = 1;j<=1<<n;j++)
            cout<<a[i][j]<<' ';
        cout<<endl;
    }
    return 0;
}

错误提示是这样的 ./ccWuUK6e.o: in function __static_initialization_and_destruction_0(int, int)': src:(.text+0x351): relocation truncated to fit: R_X86_64_PC32 against .bss' src:(.text+0x36a): relocation truncated to fit: R_X86_64_PC32 against `.bss' collect2: 错误:ld 返回 1

本人小蒟蒻 求助各位大佬

2021/12/18 21:35
加载中...