Problem | routine |
---|---|
User | zhaoqihui |
Submission Time | 2024-05-25 10:51:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:27: error: ‘t’ was not declared in this scope
4 | for(int i=0;i<n;i++)cin>>t[i];
| ^
routine.cpp:5:27: error: ‘a’ was not declared in this scope
5 | for(int i=0;i<n;i++)cin>>a[i];
| ^
routine.cpp:7:3: error: ‘t’ was not declared in this scope
7 | t[n]=LLONG_MAX;
| ^
routine.cpp:7:8: error: ‘LLONG_MAX’ was not declared in this scope
7 | t[n]=LLONG_MAX;
| ^~~~~~~~~
routine.cpp:1:1: note: ‘LLONG_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
+++ |+#include <climits>
1 | int main () {
routine.cpp:14:19: error: expected ‘;’ before ‘if’
14 | mid=(lo+hi+1)/2
| ^