Submission #560155

#TimeUsernameProblemLanguageResultExecution timeMemory
560155StavabArranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
long long count_swaps(std::vector<int> S) { if(S[0] < 0) return 0; else return 1; }

Compilation message (stderr)

shoes.cpp:1:28: error: 'vector' is not a member of 'std'
    1 | 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 | long long count_swaps(std::vector<int> S)
shoes.cpp:1:35: error: expected primary-expression before 'int'
    1 | long long count_swaps(std::vector<int> S)
      |                                   ^~~