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

Compile Error

routine.cpp:1:2: error: invalid preprocessing directive #incude; did you mean #include?
1 | #incude <bits/stdc++.h>
| ^~~~~~
| include
routine.cpp: In function ‘int main()’:
routine.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin>>n>>m;
| ^~~
routine.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #incude <bits/stdc++.h>
routine.cpp:7:27: error: ‘t’ was not declared in this scope
7 | for(int i=0;i<n;i++)cin>>t[i];
| ^
routine.cpp:8:27: error: ‘a’ was not declared in this scope
8 | for(int i=0;i<n;i++)cin>>a[i];
| ^
routine.cpp:10:3: error: ‘t’ was not declared in this scope
10 | t[n]=LLONG_MAX;
| ^
routine.cpp:10:8: error: ‘LLONG_MAX’ was not declared