| Problem | playlist2 |
|---|---|
| User | PyAce |
| Submission Time | 2026-01-22 16:34:26 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
playlist2.cpp: In function ‘int main()’:
playlist2.cpp:9:2: error: expected initializer before ‘cin’
9 | cin >> max >> n;
| ^~~
playlist2.cpp:13:8: error: invalid type argument of unary ‘*’ (have ‘long long int’)
13 | if (*cmd == "Push") {
| ^~~
playlist2.cpp:16:11: error: ‘avector’ was not declared in this scope
16 | avector.push_back(templ);
| ^~~~~~~
playlist2.cpp:18:19: error: ‘avector’ was not declared in this scope
18 | reverse(avector.begin(), avector.end());
| ^~~~~~~
playlist2.cpp:19:11: error: ‘backtempl’ was not declared in this scope
19 | backtempl = avector.pop_back();
| ^~~~~~~~~
playlist2.cpp:22:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
22 | }else if(cmd == "Play") {
| ^~~~~~
playlist2.cpp:24:15: error: ‘avector’