Submission #717791

# Submission time Handle Problem Language Result Execution time Memory
717791 2023-04-02T14:21:52 Z skyvn97 Hexagonal Territory (APIO21_hexagon) C++14
Compilation error
0 ms 0 KB
#include "hexagon.h"

#include <bits/stdc++.h>
using namespace std;

long long a[20202][20202]; // memory limit exceeded

int draw_territory(int N, int A, int B,
                   std::vector<int> D, std::vector<int> L) {
	for (int i = 0; i < 100; i++) for (int j = 0; j < 100; j++) a[i][j] = i ^ j;
  	return a[0][0] + 220797;
}

Compilation message

/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