Submission #241340

#TimeUsernameProblemLanguageResultExecution timeMemory
241340clairvoyantReversing a Sequence (IOI16_reverse)C++14
100 / 100
52 ms5880 KiB
#include <vector> #include <algorithm> using namespace std; vector<long long int>reverse(vector<long long int>a){ for(int i = 0; i < a.size()/2; i++){ long long temp = a[i]; a[i] = a[a.size()-i-1]; a[a.size()-i-1] = temp; } return a; }

Compilation message (stderr)

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