Problem routine
User DoubleShaurya
Submission Time 2024-04-05 17:19:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

routine.cpp: In function ‘int main()’:
routine.cpp:12:12: error: conflicting declaration ‘long long int A [N]’
12 | long long A[N], B[N];
| ^
routine.cpp:9:18: note: previous declaration as ‘long long int A’
9 | long long N, M, A;
| ^
routine.cpp:18:13: error: invalid types ‘long long int[long long int]’ for array subscript
18 | cin >> A[i];
| ^
routine.cpp:24:41: error: ‘T’ was not declared in this scope
24 | position = upper_bound(B, B + N, A) - T - 1;
| ^
routine.cpp:25:21: error: invalid types ‘long long int[long long int]’ for array subscript
25 | cout << A[position] << "\n";
| ^