Submission #634418

# Submission time Handle Problem Language Result Execution time Memory
634418 2022-08-24T11:10:44 Z ahmed_shafik Reversing a Sequence (IOI16_reverse) C++17
Compilation error
0 ms 0 KB
long long rev(long long a[],long long i)
{
    if(i<0)
    {
        return 0;
    }
    else
    {
        return a[i-1];
    }
}

Compilation message

/usr/bin/ld: /tmp/ccLf1YgN.o: in function `main':
grader.cpp:(.text.startup+0x17d): undefined reference to `reverse(std::vector<long long, std::allocator<long long> >)'
collect2: error: ld returned 1 exit status