Problem routine
User bribritt
Submission Time 2023-10-25 09:53:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

routine.cpp: In function ‘int32_t main()’:
routine.cpp:6:32: error: conflicting declaration ‘std::pair<long long int, long long int> Q [M]’
6 | int T[N], A[N]; pair<int,int> Q[M]; int ans[M];
| ^
routine.cpp:5:12: note: previous declaration as ‘long long int Q’
5 | int N, M, Q; cin >> N >> M;
| ^
routine.cpp:10:11: error: invalid types ‘long long int[long long int]’ for array subscript
10 | cin>>Q[i].first;
| ^
routine.cpp:11:6: error: invalid types ‘long long int[long long int]’ for array subscript
11 | Q[i].second=i;
| ^
routine.cpp:16:33: error: invalid types ‘long long int[long long int]’ for array subscript
16 | while(cur < N && T[cur] <= Q[i].first) cur++;
| ^
routine.cpp:17:10: error: invalid types ‘long long int[long long int]’ for array subscript