Problem routine
User zhaoqihui
Submission Time 2024-05-25 10:50:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

routine.cpp: In function ‘int main()’:
routine.cpp:3:2: error: ‘cin’ was not declared in this scope
3 | cin>>n>>m
| ^~~
routine.cpp:4:14: error: ‘i’ was not declared in this scope
4 | for(int i=0;i<n;i++)cin>>t[i];
| ^
routine.cpp:5:22: error: ‘cina’ was not declared in this scope
5 | for(int i=0;i<n;i++)cina[i]
| ^~~~
routine.cpp:14:19: error: expected ‘;’ before ‘if’
14 | mid=(lo+hi+1)/2
| ^
| ;
15 | if (q<t[mid])hi=mid-1
| ~~
routine.cpp:18:3: error: ‘cout’ was not declared in this scope
18 | cout<<a[lo]<<'\n';
| ^~~~
routine.cpp:18:9: error: ‘a’ was not declared in this scope
18 | cout<<a[lo]<<'\n';
| ^