C++ solution
\nvector<vector<int>> flipAndInvertImage(vector<vector<int>>& A) {\n\tfor (auto& v : A) {\n\t\treverse(v.begin(), v.end());\n\t\tfor (auto& n : v)\n\t\t\tn = !n
```\nvector<vector<int>> flipAndInvertImage(vector<vector<int>>& A) {\n\tfor (auto& v : A) {\n\t\treverse(v.begin(), v.end());\n\t\tfor (auto& n : v)\n\t\t\tn = !n;\n\t}\n\treturn A;\n}\n```\n
['C', 'C++']