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

Compile Error

stickytape.cpp: In function ‘int main()’:
stickytape.cpp:8:34: error: expected ‘;’ before ‘cin’
8 | ios_base:: sync_with_stdio(false)
| ^
| ;
9 | cin.tie(NULL)
| ~~~
stickytape.cpp:11:9: error: ‘N’ was not declared in this scope
11 | cin >> N >> M;
| ^
stickytape.cpp:11:14: error: ‘M’ was not declared in this scope
11 | cin >> N >> M;
| ^
stickytape.cpp:14:27: error: expected ‘;’ before ‘)’ token
14 | for (int i = 0; i < M, i++) cin >> nv[i];
| ^
| ;
stickytape.cpp:16:28: error: expected ‘;’ before ‘)’ token
16 | for (int i = 0; i < M, i++){ cin >> nv[i]
| ^
| ;
stickytape.cpp:16:43: err