실행 실패 (제출 코드 컴파일 에러)
Main.cpp:1:15: error: expected ‘{’ before ‘;’ token 1 | namespace std; | ^ Main.cpp:3:1: error: ‘priority_queue’ does not name a type 3 | priority_queue<ll> pq; | ^~~~~~~~~~~~~~ Main.cpp: In function ‘int main()’: Main.cpp:6:5: error: ‘cin’ was not declared in this scope 6 | cin>>n>>k; | ^~~ Main.cpp:7:5: error: ‘pair’ was not declared in this scope 7 | pair<ll,ll> v[n]; //jewelry | ^~~~ Main.cpp:7:12: error: expected primary-expression before ‘,’ token 7 | pair<ll,ll> v[n]; //jewelry | ^ Main.cpp:7:15: error: expected primary-expression before ‘>’ token 7 | pair<ll,ll> v[n]; //jewelry | ^ Main.cpp:7:17: error: ‘v’ was not declared in this scope 7 | pair<ll,ll> v[n]; //jewelry | ^ Main.cpp:18:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’? 18 | sort(v,v+n); | ^~~~ | short Main.cpp:26:21: error: ‘pq’ was not declared in this scope 26 | if (pq.size()==k){ | ^~ Main.cpp:37:12: error: ‘pq’ was not declared in this scope 37 | while (pq.size()){ | ^~ Main.cpp:40:4: error: ‘cout’ was not declared in this scope 40 | cout<<ret; | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.