제출 #992440

#제출 시각아이디문제언어결과실행 시간메모리
992440mohammedMonemArranging Shoes (IOI19_shoes)C++17
컴파일 에러
0 ms0 KiB
long long count_swaps(std::vector<int> S) {return S[0] < 0;}

컴파일 시 표준 에러 (stderr) 메시지

shoes.cpp:1:28: error: 'vector' is not a member of 'std'
    1 | long long count_swaps(std::vector<int> S) {return S[0] < 0;}
      |                            ^~~~~~
shoes.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
  +++ |+#include <vector>
    1 | long long count_swaps(std::vector<int> S) {return S[0] < 0;}
shoes.cpp:1:35: error: expected primary-expression before 'int'
    1 | long long count_swaps(std::vector<int> S) {return S[0] < 0;}
      |                                   ^~~