Problem drama
User Bensamuel2008
Submission Time 2025-06-19 16:10:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

drama.cpp: In function ‘int main()’:
drama.cpp:6:13: error: conflicting declaration ‘long long int a [n]’
6 | long long a[n];
| ^
drama.cpp:4:18: note: previous declaration as ‘long long int a’
4 | long long n, q, a, x, count=0;
| ^
drama.cpp:8:14: error: invalid types ‘long long int[int]’ for array subscript
8 | cin >> a[i];
| ^
drama.cpp:13:11: error: invalid types ‘long long int[int]’ for array subscript
13 | if (a[i]<x){
| ^
drama.cpp:17:24: error: expected ‘;’ before ‘}’ token
17 | cout << count << "/n"
| ^
| ;
18 | }
| ~