Submission #357711

#TimeUsernameProblemLanguageResultExecution timeMemory
357711Ahmad_HasanData Transfer (IOI19_transfer)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "transfer.h" #define LONG_LONG_MAX 1e18 #define int long long using namespace std; int* get_attachment(int *src){ return src; } int* retrieve(int *data){ return data; }

Compilation message (stderr)

transfer.cpp:3: warning: "LONG_LONG_MAX" redefined
    3 | #define LONG_LONG_MAX 1e18
      | 
In file included from /usr/include/c++/9/climits:42,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:39,
                 from transfer.cpp:1:
/usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h:154: note: this is the location of the previous definition
  154 | # define LONG_LONG_MAX __LONG_LONG_MAX__
      | 
/tmp/cc2jmGL5.o: In function `pass1()':
grader.cpp:(.text+0x644): undefined reference to `get_attachment(std::vector<int, std::allocator<int> >)'
/tmp/cc2jmGL5.o: In function `pass2()':
grader.cpp:(.text+0x13f0): undefined reference to `retrieve(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status