Submission #64894

#TimeUsernameProblemLanguageResultExecution timeMemory
64894qkxwsmReversing a Sequence (IOI16_reverse)C++17
100 / 100
87 ms7176 KiB
/* PROG: source LANG: C++11 _____ .' '. / 0 0 \ | ^ | | \ / | \ '---' / '._____.' */ // #include <bits/stdc++.h> // #include <ext/pb_ds/tree_policy.hpp> // #include <ext/pb_ds/assoc_container.hpp> #include "reverse.h" #include <vector> using namespace std; typedef long long ll; vector<ll> reverse(vector<ll> v) { vector<ll> res(v.size()); for (int i = 0; i < v.size(); i++) { res[i] = v[v.size() - 1 - i]; } return res; }

Compilation message (stderr)

reverse.cpp: In function 'std::vector<long long int> reverse(std::vector<long long int>)':
reverse.cpp:25:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < v.size(); i++)
                         ~~^~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...