답안 #337667

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
337667 2020-12-21T11:30:32 Z aris12345678 뒤집기 (IOI16_reverse) C++14
컴파일 오류
0 ms 0 KB
#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

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());
      |                          ^~~