Submission #337667

#TimeUsernameProblemLanguageResultExecution timeMemory
337667aris12345678Reversing a Sequence (IOI16_reverse)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; const int mxN = 1e5+5; vector<int64> reverse(vector<int64> a) { reverse(a.begin(), a.end()); return a; } /*int main() { ios::sync_with_stdio(false); cin.tie(0); }*/

Compilation message (stderr)

reverse.cpp:7:8: error: 'int64' was not declared in this scope; did you mean 'int64_t'?
    7 | vector<int64> reverse(vector<int64> a) {
      |        ^~~~~
      |        int64_t
reverse.cpp:7:13: error: template argument 1 is invalid
    7 | vector<int64> reverse(vector<int64> a) {
      |             ^
reverse.cpp:7:13: error: template argument 2 is invalid
reverse.cpp:7:30: error: 'int64' was not declared in this scope; did you mean 'int64_t'?
    7 | vector<int64> reverse(vector<int64> a) {
      |                              ^~~~~
      |                              int64_t
reverse.cpp:7:35: error: template argument 1 is invalid
    7 | vector<int64> reverse(vector<int64> a) {
      |                                   ^
reverse.cpp:7:35: error: template argument 2 is invalid
reverse.cpp: In function 'int reverse(int)':
reverse.cpp:8:15: error: request for member 'begin' in 'a', which is of non-class type 'int'
    8 |     reverse(a.begin(), a.end());
      |               ^~~~~
reverse.cpp:8:26: error: request for member 'end' in 'a', which is of non-class type 'int'
    8 |     reverse(a.begin(), a.end());
      |                          ^~~