Problem | queuecutting |
---|---|
User | Kenniene |
Submission Time | 2024-06-21 14:25:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
queuecutting.cpp: In function ‘int32_t main()’:
queuecutting.cpp:21:18: error: ‘class std::queue<long long int>’ has no member named ‘push_back’
21 | line.push_back(x);
| ^~~~~~~~~
queuecutting.cpp:26:33: error: ‘class std::queue<long long int>’ has no member named ‘begin’
26 | auto it = find(line.begin(), line.end(), z);
| ^~~~~
queuecutting.cpp:26:47: error: ‘class std::queue<long long int>’ has no member named ‘end’
26 | auto it = find(line.begin(), line.end(), z);
| ^~~
queuecutting.cpp:27:18: error: ‘class std::queue<long long int>’ has no member named ‘insert’
27 | line.insert(it + 1, y);
| ^~~~~~
queuecutting.cpp:31:25: error: no match for ‘operator[]’ (operand types are ‘std::queue<long long int>’ and ‘int’)
31