I constantly get compile error (no error message) for the following code submission:

class Solution {

```
public:
size_t numDistinct(const string& S, const string& T) {
const size_t m = S.size();
const size_t n = T.size();
if (n>m) {
return 0;
}
if (n == 0) {
return 1;
}
vector<vector<size_t>> res(1+m, vector<size_t>(1+n));
for (size_t i = 0; i<=m; ++i) {
res[i][n] = 1;
}
for (size_t i = 0; i<n; ++i) {
res[m][i] = 0;
}
for (size_t i = m; i>0; --i) {
for (size_t j = n; j>0; --j) {
res[i-1][j-1] = res[i][j-1];
if (S[i-1] == T[j-1]) {
res[i-1][j-1] += res[i][j];
}
}
}
return res[0][0];
}
};
```

The code compiles fine locally on my own machine.