Submission #357714

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

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

    return src;
}

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

    return data;
}

Compilation message

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/cc5li3xm.o: In function `pass1()':
grader.cpp:(.text+0x644): undefined reference to `get_attachment(std::vector<int, std::allocator<int> >)'
/tmp/cc5li3xm.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