0_0_36042551_4494.cpp:1:7: error: expected nested-name-specifier before 'System'
using System;
^
0_0_36042551_4494.cpp:2:7: error: expected nested-name-specifier before 'System'
using System.Collections.Generic;
^
0_0_36042551_4494.cpp:3:7: error: expected nested-name-specifier before 'System'
using System.Linq;
^
0_0_36042551_4494.cpp:9:10: error: expected ':' before 'static'
public static void Main(string[] args)
^
0_0_36042551_4494.cpp:9:27: error: 'string' has not been declared
public static void Main(string[] args)
^
0_0_36042551_4494.cpp:9:36: error: expected ',' or '...' before 'args'
public static void Main(string[] args)
^
0_0_36042551_4494.cpp:28:2: error: expected ';' after class definition
}
^
0_0_36042551_4494.cpp: In static member function 'static void a1::Program::Main(int*)':
0_0_36042551_4494.cpp:12:4: error: 'string' was not declared in this scope
string str=string.Empty;
^
0_0_36042551_4494.cpp:13:4: error: 'str' was not declared in this scope
str=Console.ReadLine();
^
0_0_36042551_4494.cpp:13:8: error: 'Console' was not declared in this scope
str=Console.ReadLine();
^
0_0_36042551_4494.cpp:14:6: error: 'Convert' was not declared in this scope
n=Convert.ToInt32(str);
^
0_0_36042551_4494.cpp:17:12: error: expected primary-expression before ']' token
string[] s=str.Split(' ');
^
0_0_36042551_4494.cpp:18:27: error: 's' was not declared in this scope
int k=Convert.ToInt32(s[0]);
^
0_0_36042551_4494.cpp:19:11: error: expected unqualified-id before '[' token
double[] a=new double[k];
^
0_0_36042551_4494.cpp:21:6: error: 'a' was not declared in this scope
a[i]=Convert.ToDouble(s[i+1]);
^
0_0_36042551_4494.cpp:22:14: error: 'a' was not declared in this scope
double t=a[0];
^
0_0_36042551_4494.cpp:25:31: error: request for member 'ToString' in 't', which is of non-class type 'double'
Console.WriteLine("{0}",t.ToString("0.00"));
^
|