| Problem | stickytape |
|---|---|
| User | WANCH5789W |
| Submission Time | 2026-05-31 10:34:14 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
stickytape.cpp: In function ‘int main()’:
stickytape.cpp:15:14: error: lvalue required as left operand of assignment
15 | if (M % 2 = 0) {
| ^
stickytape.cpp:17:34: error: ‘n’ was not declared in this scope
17 | pair <int, int> p = {nv[i], nv[n+i];
| ^
stickytape.cpp:17:38: error: expected ‘}’ before ‘;’ token
17 | pair <int, int> p = {nv[i], nv[n+i];
| ~ ^
stickytape.cpp:17:38: error: could not convert ‘{nv.std::vector<int>::operator[](((std::vector<int>::size_type)i)), <expression error>}’ from ‘<brace-enclosed initializer list>’ to ‘std::pair<int, int>’
stickytape.cpp:20:19: error: lvalue required as left operand of assignment
20 | else if (M % 2 = 1) {
| ^
stickytape.cpp:21:46: error: expected ‘;’ before ‘pair’
21 | for (int i = 0; i < M-3; i++){ cin