Submission #357710

#TimeUsernameProblemLanguageResultExecution timeMemory
357710Ahmad_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__
      | 
transfer.cpp:7:4: error: structured binding declaration cannot have type 'long long int'
    7 | int[]  get_attachment(int[] src){
      |    ^~
transfer.cpp:7:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
transfer.cpp:7:4: error: empty structured binding declaration
transfer.cpp:7:8: error: expected initializer before 'get_attachment'
    7 | int[]  get_attachment(int[] src){
      |        ^~~~~~~~~~~~~~
transfer.cpp:12:4: error: structured binding declaration cannot have type 'long long int'
   12 | int[]  retrieve(int[] data){
      |    ^~
transfer.cpp:12:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
transfer.cpp:12:4: error: empty structured binding declaration
transfer.cpp:12:8: error: expected initializer before 'retrieve'
   12 | int[]  retrieve(int[] data){
      |        ^~~~~~~~