```cpp
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
template <class T>
void func(T& a) {
cout << a[0] << endl;
}
int main() {
int a[] = {1, 2, 3};
func(a);
vector<int> b{4, 5, 6};
func(b);
array<int, 3> c{7, 8, 9};
func(c);
return 0;
}
```
by yukimianyan @ 2024-04-25 08:33:59
@[yukimianyan](/user/509229) thanks
by __vector__ @ 2024-04-25 08:34:19