| Problem | stickytape |
|---|---|
| User | WANCH5789W |
| Submission Time | 2026-05-31 10:38:41 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
stickytape.cpp: In function ‘int main()’:
stickytape.cpp:22:34: error: ‘n’ was not declared in this scope
22 | pair <int, int> p = {nv[i], nv[n+i]};
| ^
stickytape.cpp:22: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>’
22 | pair <int, int> p = {nv[i], nv[n+i]};
| ^
| |
| <brace-enclosed initializer list>
stickytape.cpp:23:14: error: ‘class std::vector<int>’ has no member named ‘first’
23 | sum += nv.first + nv.second;
| ^~~~~
stickytape.cpp:23:25: error: ‘class std::vector<int>’ has no member named ‘second’
23 | sum += nv.first + nv.second;