Submission #20585

#TimeUsernameProblemLanguageResultExecution timeMemory
20585model_codeReversing a Sequence (IOI16_reverse)C++11
0 / 100
0 ms1932 KiB
#include "reverse.h" std::vector<long long> reverse(std::vector<long long> a) { std::vector<long long> res(a.size()); for (int i = 0; i < a.size(); i++) { res[i] = a[a.size() - i - 1] * 2; } return res; }

Compilation message (stderr)

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