Submission #544228

# Submission time Handle Problem Language Result Execution time Memory
544228 2022-04-01T12:38:50 Z Trisanu_Das Reversing a Sequence (IOI16_reverse) C++17
Compilation error
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[]){
      |       ^~~~~~~