Submission #331045

#TimeUsernameProblemLanguageResultExecution timeMemory
331045shihan04Arranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
template <size_t n> long long count_swap(int (&S)[n]){ return n/2; }

Compilation message (stderr)

shoes.cpp:1:11: error: 'size_t' has not been declared
    1 | template <size_t n>
      |           ^~~~~~
shoes.cpp:2:31: error: 'n' was not declared in this scope
    2 | long long count_swap(int (&S)[n]){
      |                               ^
shoes.cpp: In function 'long long int count_swap(...)':
shoes.cpp:3:10: error: 'n' was not declared in this scope
    3 |   return n/2;
      |          ^