Submission #634423

#TimeUsernameProblemLanguageResultExecution timeMemory
634423ahmed_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) { 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:32: error: expected primary-expression before 'a'
    5 |   return std::vector<long long>a;
      |                                ^
reverse.cpp:5:32: error: expected ';' before 'a'
    5 |   return std::vector<long long>a;
      |                                ^
      |                                ;
reverse.cpp:5:32: warning: statement has no effect [-Wunused-value]