0_0_36170235_24341.cpp:1:7: error: expected nested-name-specifier before 'System'
using System;
^
0_0_36170235_24341.cpp:7:10: error: expected ':' before 'const'
public const int M = 50;
^
0_0_36170235_24341.cpp:8:10: error: expected ':' before 'static'
public static string[] countries = new string[M];
^
0_0_36170235_24341.cpp:8:17: error: 'string' does not name a type
public static string[] countries = new string[M];
^
0_0_36170235_24341.cpp:9:10: error: expected ':' before 'static'
public static double[][] relation = new double[M][];
^
0_0_36170235_24341.cpp:9:23: error: expected unqualified-id before '[' token
public static double[][] relation = new double[M][];
^
0_0_36170235_24341.cpp:10:10: error: expected ':' before 'static'
public static int find(string s, int n)
^
0_0_36170235_24341.cpp:10:26: error: 'string' has not been declared
public static int find(string s, int n)
^
0_0_36170235_24341.cpp:24:10: error: expected ':' before 'static'
public static void Main(string[] args)
^
0_0_36170235_24341.cpp:24:27: error: 'string' has not been declared
public static void Main(string[] args)
^
0_0_36170235_24341.cpp:24:36: error: expected ',' or '...' before 'args'
public static void Main(string[] args)
^
0_0_36170235_24341.cpp:74:2: error: expected ';' after class definition
}
^
0_0_36170235_24341.cpp: In static member function 'static int a1::Program::find(int, int)':
0_0_36170235_24341.cpp:15:9: error: 'countries' was not declared in this scope
if (countries[mid] == s)
^
0_0_36170235_24341.cpp:17:14: error: 'string' was not declared in this scope
else if (string.Compare(countries[mid], s) < 0)
^
0_0_36170235_24341.cpp: In static member function 'static void a1::Program::Main(int*)':
0_0_36170235_24341.cpp:27:4: error: 'string' was not declared in this scope
string a, b;
^
0_0_36170235_24341.cpp:29:11: error: expected ';' before 'str'
string str = string.Empty;
^
0_0_36170235_24341.cpp:30:12: error: 'str' was not declared in this scope
while ((str = Console.ReadLine()) != null) {
^
0_0_36170235_24341.cpp:30:18: error: 'Console' was not declared in this scope
while ((str = Console.ReadLine()) != null) {
^
0_0_36170235_24341.cpp:30:41: error: 'null' was not declared in this scope
while ((str = Console.ReadLine()) != null) {
^
0_0_36170235_24341.cpp:31:9: error: 'Convert' was not declared in this scope
n = Convert.ToInt32(str);
^
0_0_36170235_24341.cpp:36:6: error: 'relation' was not declared in this scope
relation[i] = new double[n];
^
0_0_36170235_24341.cpp:43:6: error: 'countries' was not declared in this scope
countries[i] = str;
^
0_0_36170235_24341.cpp:44:6: error: 'relation' was not declared in this scope
relation[i][i] = 1;
^
0_0_36170235_24341.cpp:46:5: error: 'Array' was not declared in this scope
Array.Sort(countries,0,n);
^
0_0_36170235_24341.cpp:46:16: error: 'countries' was not declared in this scope
Array.Sort(countries,0,n);
^
0_0_36170235_24341.cpp:51:13: error: expected primary-expression before ']' token
string[] s = str.Split(' ');
^
0_0_36170235_24341.cpp:52:6: error: 'a' was not declared in this scope
a = s[0];
^
0_0_36170235_24341.cpp:52:10: error: 's' was not declared in this scope
a = s[0];
^
0_0_36170235_24341.cpp:54:6: error: 'b' was not declared in this scope
b = s[2];
^
0_0_36170235_24341.cpp:57:6: error: 'relation' was not declared in this scope
relation[p][q] = t;
^
0_0_36170235_24341.cpp:63:12: error: 'relation' was not declared in this scope
if (relation[p][i] * relation[i][q] > relation[p][q])
^
0_0_36170235_24341.cpp:66:10: error: 'relation' was not declared in this scope
if (relation[i][i] > 1)
^
|