제출 #144389

#제출 시각아이디문제언어결과실행 시간메모리
144389mohamedsobhi777Arranging Shoes (IOI19_shoes)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> long long count_swaps(vector<int> S) { if(S[0]>S[1]) return 1; return 0; }

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

shoes.cpp:3:23: error: 'vector' was not declared in this scope
 long long count_swaps(vector<int> S)
                       ^~~~~~
shoes.cpp:3:23: note: suggested alternative:
In file included from /usr/include/c++/7/vector:64:0,
                 from /usr/include/c++/7/queue:61,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
                 from shoes.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:216:11: note:   'std::vector'
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^~~~~~
shoes.cpp:3:30: error: expected primary-expression before 'int'
 long long count_swaps(vector<int> S)
                              ^~~