Submission #650139

#TimeUsernameProblemLanguageResultExecution timeMemory
650139activedeltorreArranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
#include<vector> long long cout_swaps(vector<int>vec) { if(vec[0]<0) { return 0; } else { return 1; } }

Compilation message (stderr)

shoes.cpp:2:22: error: 'vector' was not declared in this scope; did you mean 'std::vector'?
    2 | long long cout_swaps(vector<int>vec)
      |                      ^~~~~~
      |                      std::vector
In file included from /usr/include/c++/10/vector:67,
                 from shoes.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:389:11: note: 'std::vector' declared here
  389 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
shoes.cpp:2:29: error: expected primary-expression before 'int'
    2 | long long cout_swaps(vector<int>vec)
      |                             ^~~