0_0_37910858_5038.cpp:1:7: error: expected nested-name-specifier before 'System'
using System;
^
0_0_37910858_5038.cpp:7:26: error: 'string' has not been declared
static void Main(string[] args)
^
0_0_37910858_5038.cpp:7:35: error: expected ',' or '...' before 'args'
static void Main(string[] args)
^
0_0_37910858_5038.cpp:30:5: error: expected ';' after class definition
}
^
0_0_37910858_5038.cpp: In static member function 'static void HDACMPractice::Program::Main(int*)':
0_0_37910858_5038.cpp:9:13: error: 'System' was not declared in this scope
System.Collections.Generic.List<int> list1 = new System.Collections.Generic.List<int>();
^
0_0_37910858_5038.cpp:9:45: error: expected primary-expression before 'int'
System.Collections.Generic.List<int> list1 = new System.Collections.Generic.List<int>();
^
0_0_37910858_5038.cpp:10:13: error: 'var' was not declared in this scope
var n1= Console.ReadLine();
^
0_0_37910858_5038.cpp:11:33: error: 'Convert' was not declared in this scope
for (int i = 0; i < Convert.ToInt32(n1); i++)
^
0_0_37910858_5038.cpp:11:49: error: 'n1' was not declared in this scope
for (int i = 0; i < Convert.ToInt32(n1); i++)
^
0_0_37910858_5038.cpp:13:21: error: expected ';' before 'n'
var n = Console.ReadLine();
^
0_0_37910858_5038.cpp:14:17: error: 'list1' was not declared in this scope
list1.Add(Convert.ToInt32(n));
^
0_0_37910858_5038.cpp:14:43: error: 'n' was not declared in this scope
list1.Add(Convert.ToInt32(n));
^
0_0_37910858_5038.cpp:16:26: error: expected ')' before 'item'
foreach (var item in list1)
^
0_0_37910858_5038.cpp:16:39: error: 'foreach' was not declared in this scope
foreach (var item in list1)
^
|