Problem | stickytape |
---|---|
User | eulerleonhardfan |
Submission Time | 2023-12-06 16:54:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
stickytape.cpp:2:4: error: ‘cin’ does not name a type
2 | cin >> n >> m;
| ^~~
stickytape.cpp:3:4: error: ‘vector’ does not name a type
3 | vector<int> l;
| ^~~~~~
stickytape.cpp:4:4: error: expected unqualified-id before ‘for’
4 | for (int i = 0; i < m; i++) {
| ^~~
stickytape.cpp:4:20: error: ‘i’ does not name a type
4 | for (int i = 0; i < m; i++) {
| ^
stickytape.cpp:4:27: error: ‘i’ does not name a type
4 | for (int i = 0; i < m; i++) {
| ^
stickytape.cpp:9:8: error: expected constructor, destructor, or type conversion before ‘(’ token
9 | sort(l.begin(), l.end(), greater<int>());
| ^
stickytape.cpp:11:4: error: expected unqualified-id before ‘while’
11 | while (l.size() > 1) {
| ^~~~~
stickytape.cpp:16:2: error: ‘cout’ does not nam