Problem cuttingqueue
User Jiajing
Submission Time 2026-06-25 11:04:37
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:31:13: error: could not convert ‘Q’ from ‘std::deque<long long int>’ to ‘bool’
31 | for(int i;Q){
| ^
| |
| std::deque<long long int>
cuttingqueue.cpp:31:14: error: expected ‘;’ before ‘)’ token
31 | for(int i;Q){
| ^
| ;
cuttingqueue.cpp:37:1: error: expected ‘}’ at end of input
37 | }
| ^
cuttingqueue.cpp:5:15: note: to match this ‘{’
5 | signed main() {
| ^