Submission #950781

#TimeUsernameProblemLanguageResultExecution timeMemory
950781Dec0DeddCatfish Farm (IOI22_fish)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "fish.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; const int N = 3e5+10; ll n, m, x[N], y[N], w[N], dp[N], cnt[N][N], p[N][N]; ll max_weights(int _n, int _m, vector<int> _x, vector<int> _y, vector<int> _w) { n=_n, m=_m; ll s=0; for (int i=1; i<=m; ++i) { x[i]=_x[i-1], y[i]=_y[i-1], w[i]=_w[i-1]; ++x[i], ++y[i]; cnt[x[i]][y[i]]+=w[i]; s+=w[i]; } return s; }

Compilation message (stderr)

/usr/lib/gcc/x86_64-linux-gnu/10/libstdc++.a(vterminate.o): in function `__gnu_cxx::__verbose_terminate_handler()':
(.text._ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x1e): relocation truncated to fit: R_X86_64_PC32 against `.bss._ZZN9__gnu_cxx27__verbose_terminate_handlerEvE11terminating'
(.text._ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x2b): relocation truncated to fit: R_X86_64_PC32 against `.bss._ZZN9__gnu_cxx27__verbose_terminate_handlerEvE11terminating'
/usr/bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax
collect2: error: ld returned 1 exit status