lot.cpp: In function 'int main()':
lot.cpp:31:5: error: reference to 'array' is ambiguous
31 | array[j-l+1][mas[t]]++;
| ^~~~~
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:71,
from lot.cpp:1:
/usr/include/c++/9/array:94:12: note: candidates are: 'template<class _Tp, long unsigned int _Nm> struct std::array'
94 | struct array
| ^~~~~
lot.cpp:3:55: note: 'int array [100005][105]'
3 | int n, l, q, k, t, a[100005], b[100005], mas[100005], array[100005][105], ans[100005][105];
| ^~~~~
lot.cpp:32:5: error: reference to 'array' is ambiguous
32 | array[j+i-l+1][mas[t]]++;
| ^~~~~
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:71,
from lot.cpp:1:
/usr/include/c++/9/array:94:12: note: candidates are: 'template<class _Tp, long unsigned int _Nm> struct std::array'
94 | struct array
| ^~~~~
lot.cpp:3:55: note: 'int array [100005][105]'
3 | int n, l, q, k, t, a[100005], b[100005], mas[100005], array[100005][105], ans[100005][105];
| ^~~~~
lot.cpp:38:23: error: reference to 'array' is ambiguous
38 | ans[j][ar[i].second]=array[j][i]+ans[j][ar[i-1].second];
| ^~~~~
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:71,
from lot.cpp:1:
/usr/include/c++/9/array:94:12: note: candidates are: 'template<class _Tp, long unsigned int _Nm> struct std::array'
94 | struct array
| ^~~~~
lot.cpp:3:55: note: 'int array [100005][105]'
3 | int n, l, q, k, t, a[100005], b[100005], mas[100005], array[100005][105], ans[100005][105];
| ^~~~~
lot.cpp:40:6: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
40 | for(int j=1; j<=n-l+1; j++)
| ^~~
lot.cpp:42:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
42 | cout<<endl;
| ^~~~