编译失败???

P1003 [NOIP2011 提高组] 铺地毯

为什么我的引用和洛谷的不一样... >/tmp/runtime/lib/gcc/x86\_64-unknown-linux-gnu/4.9.4/libgcc.a(unwind-dw2.o):(.text+0xaba): relocation truncated to fit: R\_X86\_64\_PC32 against `.bss' /tmp/runtime/lib/gcc/x86\_64-unknown-linux-gnu/4.9.4/libgcc.a(unwind-dw2.o):(.text+0x1fc7): relocation truncated to fit: R\_X86\_64\_PC32 against `.bss' /tmp/runtime/lib/gcc/x86\_64-unknown-linux-gnu/4.9.4/libgcc.a(unwind-dw2.o):(.text+0x1fd0): relocation truncated to fit: R\_X86\_64\_PC32 against `.bss' /tmp/runtime/lib/gcc/x86\_64-unknown-linux-gnu/4.9.4/libgcc.a(unwind-dw2.o):(.text+0x1fd7): relocation truncated to fit: R\_X86\_64\_PC32 against `.bss' /tmp/runtime/lib/gcc/x86\_64-unknown-linux-gnu/4.9.4/libgcc.a(unwind-dw2.o):(.text+0x1fde): relocation truncated to fit: R\_X86\_64\_PC32 against `.bss' /tmp/runtime/lib/gcc/x86\_64-unknown-linux-gnu/4.9.4/libgcc.a(unwind-dw2.o):(.text+0x1fe5): relocation truncated to fit: R\_X86\_64\_PC32 against `.bss' /tmp/runtime/lib/gcc/x86\_64-unknown-linux-gnu/4.9.4/libgcc.a(unwind-dw2.o):(.text+0x1fec): relocation truncated to fit: R\_X86\_64\_PC32 against `.bss' /tmp/runtime/lib/gcc/x86\_64-unknown-linux-gnu/4.9.4/libgcc.a(unwind-dw2.o):(.text+0x1ff3): relocation truncated to fit: R\_X86\_64\_PC32 against `.bss' /tmp/runtime/lib/gcc/x86\_64-unknown-linux-gnu/4.9.4/libgcc.a(unwind-dw2.o):(.text+0x1ffa): relocation truncated to fit: R\_X86\_64\_PC32 against `.bss' /tmp/runtime/lib/gcc/x86\_64-unknown-linux-gnu/4.9.4/libgcc.a(unwind-dw2.o):(.text+0x2001): relocation truncated to fit: R\_X86\_64\_PC32 against `.bss' /tmp/runtime/lib/gcc/x86\_64-unknown-linux-gnu/4.9.4/libgcc.a(unwind-dw2.o):(.text+0x2008): additional relocation overflows omitted from the output collect2: error: ld returned 1 exit status
by 魑魅魍魉魈 @ 2017-10-02 17:08:27


生气 >生气
by 魑魅魍魉魈 @ 2017-10-02 17:08:46


...辣鸡!
by 魑魅魍魉魈 @ 2017-10-02 17:09:09


```cpp #include<iostream> using namespace std; int main() { int a[10006],b[10006],i,n,g[10006],k[10006],x,y,v; cin>>n; for(i=1;i<=n;i++) { cin>>a[i]>>b[i]>>g[i]>>k[i]; } cin>>x>>y; v=n; for(i=n;i>=1;i--) { v--; if((a[i]<=x)&&(x<=a[i]+g[i])&&(b[i]<=y)&&(y<=b[i]+k[i])) { cout<<i; break; } else if(v==0) cout<<"-1"; } return 0; } ```
by 市场花园行动 @ 2017-10-08 09:19:07


你很优秀
by Erina @ 2017-10-16 20:40:54


|