답안 #357710

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
357710 2021-01-24T13:30:12 Z Ahmad_Hasan Data Transfer (IOI19_transfer) C++17
컴파일 오류
0 ms 0 KB
#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

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){
      |        ^~~~~~~~