제출 #650140

#제출 시각아이디문제언어결과실행 시간메모리
650140activedeltorreArranging Shoes (IOI19_shoes)C++14
컴파일 에러
0 ms0 KiB
using namespace std; long long cout_swaps(vector<int>vec) { if(vec[0]<0) { return 0; } else { return 1; } }

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

shoes.cpp:2:22: error: 'vector' was not declared in this scope
    2 | long long cout_swaps(vector<int>vec)
      |                      ^~~~~~
shoes.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
  +++ |+#include <vector>
    1 | using namespace std;
shoes.cpp:2:29: error: expected primary-expression before 'int'
    2 | long long cout_swaps(vector<int>vec)
      |                             ^~~