Problem routine
User zhaoqihui
Submission Time 2024-05-25 10:54:01
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: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:18:3: error: ‘cout’ was not declared in this scope
18 | cout<<a[lo]<<'\n';
|