0_0_35009558_4261.cpp:1:7: error: expected nested-name-specifier before 'System'
using System;
^
0_0_35009558_4261.cpp:2:7: error: expected nested-name-specifier before 'System'
using System.Collections.Generic;
^
0_0_35009558_4261.cpp:3:7: error: expected nested-name-specifier before 'System'
using System.Linq;
^
0_0_35009558_4261.cpp:9:26: error: 'string' has not been declared
static void Main(string[] args)
^
0_0_35009558_4261.cpp:9:35: error: expected ',' or '...' before 'args'
static void Main(string[] args)
^
0_0_35009558_4261.cpp:49:16: error: 'List' does not name a type
static List<int> ListCharToInt(List<char> arr)
^
0_0_35009558_4261.cpp:61:16: error: 'List' does not name a type
static List<int> GetLongestList(List<int> list1, List<int> list2)
^
0_0_35009558_4261.cpp:72:5: error: expected ';' after class definition
}
^
0_0_35009558_4261.cpp: In static member function 'static void AcmApp::Program::Main(int*)':
0_0_35009558_4261.cpp:11:13: error: 'var' was not declared in this scope
var input = Console.ReadLine();
^
0_0_35009558_4261.cpp:13:17: error: expected ';' before 'string_A'
var string_A = input.Split(' ').First();
^
0_0_35009558_4261.cpp:14:17: error: expected ';' before 'string_B'
var string_B = input.Split(' ').Last();
^
0_0_35009558_4261.cpp:16:17: error: expected ';' before 'arr_A'
var arr_A = ListCharToInt(string_A.Reverse().ToList());
^
0_0_35009558_4261.cpp:17:17: error: expected ';' before 'arr_B'
var arr_B = ListCharToInt(string_B.Reverse().ToList());
^
0_0_35009558_4261.cpp:19:13: error: 'List' was not declared in this scope
List<int> longerlist = new List<int>();
^
0_0_35009558_4261.cpp:19:18: error: expected primary-expression before 'int'
List<int> longerlist = new List<int>();
^
0_0_35009558_4261.cpp:21:13: error: 'longerlist' was not declared in this scope
longerlist = GetLongestList(arr_A, arr_B);
^
0_0_35009558_4261.cpp:21:41: error: 'arr_A' was not declared in this scope
longerlist = GetLongestList(arr_A, arr_B);
^
0_0_35009558_4261.cpp:21:48: error: 'arr_B' was not declared in this scope
longerlist = GetLongestList(arr_A, arr_B);
^
0_0_35009558_4261.cpp:21:53: error: 'GetLongestList' was not declared in this scope
longerlist = GetLongestList(arr_A, arr_B);
^
0_0_35009558_4261.cpp:23:33: error: 'Math' was not declared in this scope
for (int i = 0; i < Math.Min(string_A.Length, string_B.Length); ++i)
^
0_0_35009558_4261.cpp:23:42: error: 'string_A' was not declared in this scope
for (int i = 0; i < Math.Min(string_A.Length, string_B.Length); ++i)
^
0_0_35009558_4261.cpp:23:59: error: 'string_B' was not declared in this scope
for (int i = 0; i < Math.Min(string_A.Length, string_B.Length); ++i)
^
0_0_35009558_4261.cpp:25:21: error: expected ';' before 'sum'
var sum = arr_A[i] + arr_B[i];
^
0_0_35009558_4261.cpp:27:33: error: 'sum' was not declared in this scope
longerlist[i] = sum % 10;
^
0_0_35009558_4261.cpp:44:32: error: 'm' was not declared in this scope
longerlist.ForEach(m => { Console.Write(m); });
^
0_0_35009558_4261.cpp:44:35: error: expected primary-expression before '>' token
longerlist.ForEach(m => { Console.Write(m); });
^
0_0_35009558_4261.cpp:44:37: error: expected primary-expression before '{' token
longerlist.ForEach(m => { Console.Write(m); });
^
0_0_35009558_4261.cpp:46:13: error: 'Console' was not declared in this scope
Console.ReadKey();
^
|