Submission #563170

# Submission time Handle Problem Language Result Execution time Memory
563170 2022-05-16T12:33:29 Z Kanten4205 Reversing a Sequence (IOI16_reverse) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
const long long MOD1 = 1000000007;
const long long MOD2 = 998244353;
typedef long long ll;
typedef pair<ll, ll> P;
const long long INF = 1e17;
vector<ll> reverse(vector<ll> &A) {
    reverse(A.begin(), A.end());
    return A;
}

Compilation message

/usr/bin/ld: /tmp/ccn7gjlt.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