Problem ccs
User TheInvadr
Submission Time 2023-01-13 23:00:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp:2:4: error: ‘cin’ does not name a type
2 | cin>>n>>q;
| ^~~
ccs.cpp:3:14: error: array bound is not an integer constant before ‘]’ token
3 | int arr[n]={1};
| ^
ccs.cpp:6:28: error: ‘arr’ was not declared in this scope
6 | int *st = constructST(arr, n);
| ^~~
ccs.cpp:6:16: error: ‘constructST’ was not declared in this scope
6 | int *st = constructST(arr, n);
| ^~~~~~~~~~~
ccs.cpp:8:5: error: expected unqualified-id before ‘while’
8 | while(q--){
| ^~~~~