Submission #634423

# Submission time Handle Problem Language Result Execution time Memory
634423 2022-08-24T11:25:55 Z ahmed_shafik Reversing a Sequence (IOI16_reverse) C++17
Compilation error
0 ms 0 KB
#include "reverse.h"
 
std::vector<long long> reverse(std::vector<long long> a)
{
  return std::vector<long long>a;
}

Compilation message

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]