제출 #977970

#제출 시각아이디문제언어결과실행 시간메모리
977970kilkuwuArranging Shoes (IOI19_shoes)C++17
컴파일 에러
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; }

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