Problem | leftright |
---|---|
User | aj |
Submission Time | 2025-02-01 21:59:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
leftright.cpp: In function ‘int main()’:
leftright.cpp:9:5: error: ‘dequeue’ was not declared in this scope
9 | dequeue<int> persons;
| ^~~~~~~
leftright.cpp:9:13: error: expected primary-expression before ‘int’
9 | dequeue<int> persons;
| ^~~
leftright.cpp:18:13: error: ‘persons’ was not declared in this scope
18 | persons.push_back(val);
| ^~~~~~~
leftright.cpp:21:21: error: expected primary-expression before ‘int’
21 | dequeue<int> shifted_left=persons[0:(persons.size()/2)-1];
| ^~~
leftright.cpp:22:21: error: expected primary-expression before ‘int’
22 | dequeue<int> shifted_right=persons[(persons.size()/2):];
| ^~~
leftright.cpp:23:13: error: ‘persons’ was not declared in this scope
23 | persons=shifted_right+shifted_left;
|