Submission #777752

#TimeUsernameProblemLanguageResultExecution timeMemory
777752JoenPoenManDetecting Molecules (IOI16_molecules)C++17
Compilation error
0 ms0 KiB
#include "molecules.h" #include <bits/stdc++.h> using namespace std; vector<int> dp[2147483748]; std::vector<int> find_subset(int l, int u, std::vector<int> w) { for (int i = 0; i < (int)w.size(); i++) { for (int j = l-1; j > 0; j--) { if (dp[j].size() > 0 && j+w[i] <= u) { dp[j+w[i]] = dp[j]; dp[j+w[i]].push_back(i); if (j+w[i] >= l) return dp[j+w[i]]; } } dp[w[i]] = {i}; if (w[i] >= l && w[i] <= u) return dp[w[i]]; } return std::vector<int>(0); }

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