Submission #889118

#TimeUsernameProblemLanguageResultExecution timeMemory
889118Erick_7314Arranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
long long count_swaps(std::vector<int> s) { long long n = s.size() / 2; // n*(n-1)/2 return n*(n-1)/2; }

Compilation message (stderr)

shoes.cpp:2:28: error: 'vector' is not a member of 'std'
    2 | long long count_swaps(std::vector<int> s) {
      |                            ^~~~~~
shoes.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
  +++ |+#include <vector>
    1 | 
shoes.cpp:2:35: error: expected primary-expression before 'int'
    2 | long long count_swaps(std::vector<int> s) {
      |                                   ^~~