제출 #331045

#제출 시각아이디문제언어결과실행 시간메모리
331045shihan04Arranging Shoes (IOI19_shoes)C++14
컴파일 에러
0 ms0 KiB
template <size_t n> long long count_swap(int (&S)[n]){ return n/2; }

컴파일 시 표준 에러 (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;
      |          ^