Based on the code you provided, there are several syntax errors and issues with variable assignments. Here is a corrected version of the code that should fix the issues you mentioned
static void Main(string[] args) {
var numbers = new List<int>() { 1, 2, 3, 4 };
numbers.Add(1)...