class matice {
    double * pole;
    const int m, n;
public:
    matice(int m, int n);
    double& operator()(int i, int j);
};

matice::matice(int mm, int nn)
: m(mm), n(nn)
{
    pole = new double[m*n];
}


double& matice::operator()(int i, int j)
{
    return *(pole + n*i+j);
}
