#include #include using namespace std; class Solution { public: int sum(vector &A) { int sum = 0; for (int i = 0; i < A.size(); i++) sum += A[i]; return sum; } vector fairCandySwap(vector &A, vector &B) { int diff = (sum(A) - sum(B))/2; cout<{A[i], B[j]}; return vector{0, 0}; } }; void outputVector(vector A) { for (int i = 0; i < A.size(); i++) cout< A = {2}; vector B = {1, 3}; Solution solution = Solution(); outputVector(solution.fairCandySwap(A, B)); return 0; }