F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-29 13:19:56, Gzip enabled