Submission #426669

#TimeUsernameProblemLanguageResultExecution timeMemory
426669PbezzArranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
#include "shoes.h" long long count_swaps(std::vector<int> s) if(s[0]<0)return 0; return 1; }

Compilation message (stderr)

shoes.cpp:5:1: error: expected initializer before 'if'
    5 | if(s[0]<0)return 0;
      | ^~
shoes.cpp:9:2: error: expected unqualified-id before 'return'
    9 |  return 1;
      |  ^~~~~~
shoes.cpp:10:1: error: expected declaration before '}' token
   10 | }
      | ^