Submission #634421

#TimeUsernameProblemLanguageResultExecution timeMemory
634421ahmed_shafikReversing a Sequence (IOI16_reverse)C++17
Compilation error
0 ms0 KiB
#include "reverse.h" std::vector<long long> reverse(std::vector<long long> a) { std::reverse(a.begin(),a.end()); return std::vector<long long>a; }

Compilation message (stderr)

reverse.cpp: In function 'std::vector<long long int> reverse(std::vector<long long int>)':
reverse.cpp:5:10: error: 'reverse' is not a member of 'std'; did you mean 'reverse'?
    5 |     std::reverse(a.begin(),a.end());
      |          ^~~~~~~
reverse.cpp:3:24: note: 'reverse' declared here
    3 | std::vector<long long> reverse(std::vector<long long> a)
      |                        ^~~~~~~
reverse.cpp:6:32: error: expected primary-expression before 'a'
    6 |   return std::vector<long long>a;
      |                                ^
reverse.cpp:6:32: error: expected ';' before 'a'
    6 |   return std::vector<long long>a;
      |                                ^
      |                                ;
reverse.cpp:6:32: warning: statement has no effect [-Wunused-value]