Submission #544228

#TimeUsernameProblemLanguageResultExecution timeMemory
544228Trisanu_DasReversing a Sequence (IOI16_reverse)C++17
Compilation error
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; }

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