Problem explosives
User username
Submission Time 2024-02-25 20:11:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

explosives.cpp: In function ‘void runtc()’:
explosives.cpp:36:25: error: ‘q’ was not declared in this scope
36 | while (!q.empty() && q.front()>arr[j]){
| ^
explosives.cpp:40:21: error: ‘q’ was not declared in this scope
40 | if (q.size()==c){
| ^
explosives.cpp:46:17: error: ‘q’ was not declared in this scope
46 | q.push(brr[j]);
| ^
explosives.cpp:61:14: error: expected ‘;’ before ‘}’ token
61 | q.push(j)
| ^
| ;
62 | }
| ~
explosives.cpp:70:65: error: expected ‘]’ before ‘)’ token
70 | while (!st.empty() && brr[match[st.top()]<arr[j]){
| ^
| ]
explosiv