제출 #544228

#제출 시각아이디문제언어결과실행 시간메모리
544228Trisanu_Das뒤집기 (IOI16_reverse)C++17
컴파일 에러
0 ms0 KiB
#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; }

컴파일 시 표준 에러 (stderr) 메시지

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