Submission #282649

#TimeUsernameProblemLanguageResultExecution timeMemory
282649ioilolcomArranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; long long count_swaps(std::vector<int> S) if(S[0]>S[1]){ return 1; } return 0; }

Compilation message (stderr)

shoes.cpp:5:5: error: expected initializer before 'if'
    5 |     if(S[0]>S[1]){
      |     ^~
shoes.cpp:8:5: error: expected unqualified-id before 'return'
    8 |     return 0;
      |     ^~~~~~
shoes.cpp:9:1: error: expected declaration before '}' token
    9 | }
      | ^