Problem cuttingqueue
User Jiajing
Submission Time 2026-06-25 11:04:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuttingqueue.cpp: In function ‘int main()’:
cuttingqueue.cpp:16:13: error: ‘ori’ was not declared in this scope
16 | cin >> ori[i];
| ^~~
cuttingqueue.cpp:25:22: error: ‘ori’ was not declared in this scope
25 | Q.push_back(ori[0]);
| ^~~
cuttingqueue.cpp:26:6: error: expected ‘}’ before ‘else’
26 | else{
| ^~~~
cuttingqueue.cpp:22:17: note: to match this ‘{’
22 | if(type==1){
| ^
cuttingqueue.cpp:33:1: error: expected ‘}’ at end of input
33 | }
| ^
cuttingqueue.cpp:5:15: note: to match this ‘{’
5 | signed main() {
| ^