Submission #977970

#TimeUsernameProblemLanguageResultExecution timeMemory
977970kilkuwuArranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include "shoes.h" long long count_swaps(std::vector<int> s) { int n = (int) s.size() / 2; return (int64_t) n * (n - 1) / 2; }

Compilation message (stderr)

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:5:11: error: 'int64_t' was not declared in this scope
    5 |   return (int64_t) n * (n - 1) / 2;
      |           ^~~~~~~
shoes.cpp:5:19: error: expected ';' before 'n'
    5 |   return (int64_t) n * (n - 1) / 2;
      |                   ^~
      |                   ;
shoes.cpp:5:32: warning: statement has no effect [-Wunused-value]
    5 |   return (int64_t) n * (n - 1) / 2;
      |                    ~~~~~~~~~~~~^~~