Problem stickytape
User WANCH5789W
Submission Time 2026-05-31 10:21:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stickytape.cpp: In function ‘int main()’:
stickytape.cpp:14:27: error: expected ‘;’ before ‘)’ token
14 | for (int i = 0; i < M, i++) cin >> nv[i];
| ^
| ;
stickytape.cpp:15:14: error: lvalue required as left operand of assignment
15 | if (M % 2 = 0) {
| ^
stickytape.cpp:16:28: error: expected ‘;’ before ‘)’ token
16 | for (int i = 0; i < M, i++){ cin >> nv[i];
| ^
| ;
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>::o