Submission #1177729

#TimeUsernameProblemLanguageResultExecution timeMemory
1177729alwaus424Arranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include <vector> using namespace std; int64_t count_swaps(vector<int> S) { int64_t swaps = 0; if(S[1] < 0) { swaps = 1; } return swaps; }

Compilation message (stderr)

shoes.cpp:4:1: error: 'int64_t' does not name a type
    4 | int64_t count_swaps(vector<int> S) {
      | ^~~~~~~
shoes.cpp:2:1: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
    1 | #include <vector>
  +++ |+#include <cstdint>
    2 | using namespace std;