Submission #440001

#TimeUsernameProblemLanguageResultExecution timeMemory
440001Aurora2005Reversing a Sequence (IOI16_reverse)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int N; cin >> N; vector<long long int> A(N); for(int i=0;i<N;i++) cin >> A[i]; reverse(A.begin(),A.end()); cout << A[0]; for(int i=1;i<N;i++) cout << " " << A[i]; cout << endl; return 0; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccRikH0i.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccMm1nfj.o:reverse.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccRikH0i.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