답안 #544228

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
544228 2022-04-01T12:38:50 Z Trisanu_Das 뒤집기 (IOI16_reverse) C++17
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
#define int int64_t

int[] reverse(int a[]){
  int n = sizeof(a) / sizeof((int)1)
  reverse(a, a + n);
  return a;
}

Compilation message

reverse.cpp:5:4: error: structured binding declaration cannot have type 'int64_t' {aka 'long int'}
    5 | int[] reverse(int a[]){
      |    ^~
reverse.cpp:5:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
reverse.cpp:5:4: error: empty structured binding declaration
reverse.cpp:5:7: error: expected initializer before 'reverse'
    5 | int[] reverse(int a[]){
      |       ^~~~~~~