Submission #1317142

#TimeUsernameProblemLanguageResultExecution timeMemory
1317142belmostefaArranging Shoes (IOI19_shoes)C++20
Compilation error
0 ms0 KiB
using namespace std; long long count_swaps(vector<int>S){ if(S[0]<0){ return 0; }else{ return 1; } }

Compilation message (stderr)

shoes.cpp:2:23: error: 'vector' was not declared in this scope
    2 | long long count_swaps(vector<int>S){
      |                       ^~~~~~
shoes.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
  +++ |+#include <vector>
    1 | using namespace std;
shoes.cpp:2:30: error: expected primary-expression before 'int'
    2 | long long count_swaps(vector<int>S){
      |                              ^~~