#include <iostream>
template <typename T, size_t N>
class TestArray {
public:
T& operator[](size_t i) {
return data[i];
}
private:
T data[N];
};
int main() {
TestArray<int, 10> arr;
arr[0] = 99;
arr[1] = -1;
std::cout << arr[0] << std::endl;
std::cout << arr[1] << std::endl;
return 0;
}