Problem cuttingqueue
User Jiajing
Submission Time 2026-06-25 11:04:59
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:32:13: error: could not convert ‘Q’ from ‘std::deque<long long int>’ to ‘bool’
32 | for(int i;Q){
| ^
| |
| std::deque<long long int>
cuttingqueue.cpp:32:14: error: expected ‘;’ before ‘)’ token
32 | for(int i;Q){
| ^
| ;