Submission #498026

#TimeUsernameProblemLanguageResultExecution timeMemory
498026evenvalueReversing a Sequence (IOI16_reverse)C++17
Compilation error
0 ms0 KiB
#include "reverse.h" #include <algorithm> #include <array> #include <cassert> #include <chrono> #include <cmath> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> using namespace std; using int64 = int64_t; using ld = long double; [[maybe_unused]] int readInt() { int x; cin >> x; return x; } [[maybe_unused]] int64 readInt64() { int64 x; cin >> x; return x; } [[maybe_unused]] string readString() { string s; cin >> s; return s; } [[maybe_unused]] double readDouble() { return stod(readString()); } [[maybe_unused]] ld readLongDouble() { return stold(readString()); } template<typename T1, typename T2> [[maybe_unused]] pair<T1, T2> readPair() { pair<T1, T2> p; cin >> p.first >> p.second; return p; } template<typename T> [[maybe_unused]] vector<T> readVec(const int sz) { vector<T> v(sz); for (T &x : v) { cin >> x; } return v; } template<typename T> [[maybe_unused]] vector<vector<T>> readVecVec(const int n, const int m) { vector<vector<T>> a(n); for (vector<T> &v : a) { v = readVec<T>(m); } return a; } const int64 kInf64 = 2e18 + 10; const int kInf = 1e9 + 10; const int kMod = 1e9 + 7; vector<int64> reverse(vector<int64> a) { reverse(a.begin(), a.end()); return a; }

Compilation message (stderr)

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