Submission #1078194

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
10781942024-08-27 13:50:54TsovakCarnival Tickets (IOI20_tickets)C++17
Compilation error
0 ms0 KiB
#include "tickets.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pr pair
#define mpr make_pair
#define ff first
#define ss second
#define sz(x) (int((x).size()))
#define len(x) (int((x).length()))
#define all(x) (x).begin(), (x).end()
#define clr(x) (x).clear()
#define ft front
#define bk back
#define pf push_front
#define pb push_back
#define popf pop_front
#define popb pop_back
// -------------------- Solution -------------------- //
const int N = 1505, M = 1505;
deque<int> x[N];
int ul[N], ur[N];
int n, m, k;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from tickets.cpp:2:
tickets.cpp: In function 'll calc(std::vector<std::vector<int> >)':
tickets.cpp:51:23: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   51 |   assert(ve[i].size() == n);
      |          ~~~~~~~~~~~~~^~~~
tickets.cpp: In function 'll find_maximum(int, std::vector<std::vector<int> >)':
tickets.cpp:129:22: warning: comparison of integer expressions of different signedness: 'std::deque<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
  129 |   assert(x[i].size() == m - k);
      |          ~~~~~~~~~~~~^~~~~~~~
tickets.cpp:77:9: warning: unused variable 'v' [-Wunused-variable]
   77 |  int u, v;
      |         ^
/tmp/ccq3k91v.o: in function `__tcf_0':
tickets.cpp:(.text+0x389): relocation truncated to fit: R_X86_64_PC32 against symbol `x' defined in .bss section in /tmp/ccq3k91v.o
/tmp/ccq3k91v.o: in function `calc(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >)':
tickets.cpp:(.text+0x3ef): relocation truncated to fit: R_X86_64_PC32 against symbol `k' defined in .bss section in /tmp/ccq3k91v.o
tickets.cpp:(.text+0x472): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccq3k91v.o
tickets.cpp:(.text+0x486): relocation truncated to fit: R_X86_64_PC32 against symbol `x' defined in .bss section in /tmp/ccq3k91v.o
tickets.cpp:(.text+0x492): relocation truncated to fit: R_X86_64_PC32 against symbol `m' defined in .bss section in /tmp/ccq3k91v.o
tickets.cpp:(.text+0x4f8): relocation truncated to fit: R_X86_64_PC32 against symbol `m' defined in .bss section in /tmp/ccq3k91v.o
tickets.cpp:(.text+0x55b): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccq3k91v.o
tickets.cpp:(.text+0x567): relocation truncated to fit: R_X86_64_PC32 against symbol `k' defined in .bss section in /tmp/ccq3k91v.o
tickets.cpp:(.text+0x575): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccq3k91v.o
tickets.cpp:(.text+0x633): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccq3k91v.o
tickets.cpp:(.text+0x6a5): additional relocation overflows omitted from the output
/usr/bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax
collect2: error: ld returned 1 exit status