getting this error expected a declaration. using vscode to solve leetcode problems
#include <iostream>
#include <vector>
using std::vector;
class solution{
public:;
   <int> twoSum(vector <int>& nums, int target)
    { 
        unordered_map<int, int> _map;
        for(int i =0; i < nums.size(); i++){
            int num = nums[i];
            int complement = target - num;
            auto it = _map.find(complement);
            if(it != _map.end()){
                return {it->second, i};
            }
            _map[num] = i;
        }return {}
    }
};
error:
"message": "expected a declaration",
"source": "C/C++",
"startLineNumber": 8,
"startColumn": 4,
"endLineNumber": 8,
"endColumn": 5
 
     
    