my code is:

```
class Solution {
public:
vector<vector<int> > generate(int numRows) {
// IMPORTANT: Please reset any member data you declared, as
// the same Solution instance will be reused for each test case.
vector<vector<int> > res;
if(numRows == 0)
return res;
res.push_back(vector<int> (1, 1));
if(numRows == 1);
return res;
for(int i = 1; i < numRows; ++i) {
vector<int> t(i + 1, 1);
for(int j = 0; j < i - 1; ++j)
t[j + 1] = res[i - 1][j] + res[i - 1][j + 1];
res.push_back(t);
}
return res;
}
};
```

The result is:

Input:2

Output:[[1]]

Expected:[[1],[1,1]]

But it runs correctly on my own computer. You can go through this case by yourself and you will get correct result.

Is there something wrong with OJ?

Thank you.