static const auto io_sync_off = []() { // turn off sync std::ios::sync_with_stdio(false); // untie in/out streams std::cin.tie(nullptr); return nullptr; }(); class Solution { public: long long maxWater(vector<int>& arr) { vector<int> temp; temp.assign(arr.begin(),arr.end()); reverse(...