Submission #357707

# Submission time Handle Problem Language Result Execution time Memory
357707 2021-01-24T13:28:24 Z Ahmad_Hasan Data Transfer (IOI19_transfer) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#define LONG_LONG_MAX 1e18
#define int long long
using namespace std;

vector<int>  get_attachment(vector<int>src){

    return src;
}

vector<int>  retrieve(vector<int>data){

    return data;
}

Compilation message

transfer.cpp:2: warning: "LONG_LONG_MAX" redefined
    2 | #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/ccWWlkqc.o: In function `pass1()':
grader.cpp:(.text+0x644): undefined reference to `get_attachment(std::vector<int, std::allocator<int> >)'
/tmp/ccWWlkqc.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