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_18433200_30547.cpp:1:7: error: expected nested-name-specifier before 'System'
 using System;
       ^
0_0_18433200_30547.cpp:2:7: error: expected nested-name-specifier before 'System'
 using System.Collections.Generic;
       ^
0_0_18433200_30547.cpp:3:7: error: expected nested-name-specifier before 'System'
 using System.Linq;
       ^
0_0_18433200_30547.cpp:4:7: error: expected nested-name-specifier before 'System'
 using System.Text;
       ^
0_0_18433200_30547.cpp:5:7: error: expected nested-name-specifier before 'System'
 using System.Threading.Tasks;
       ^
0_0_18433200_30547.cpp:11:26: error: 'string' has not been declared
         static void Main(string[] args)
                          ^
0_0_18433200_30547.cpp:11:35: error: expected ',' or '...' before 'args'
         static void Main(string[] args)
                                   ^
0_0_18433200_30547.cpp:29:5: error: expected ';' after class definition
     }
     ^
0_0_18433200_30547.cpp: In static member function 'static void acmm::Program::Main(int*)':
0_0_18433200_30547.cpp:15:13: error: 'string' was not declared in this scope
             string line;
             ^
0_0_18433200_30547.cpp:16:20: error: 'line' was not declared in this scope
             while((line=Console.ReadLine())!=null)
                    ^
0_0_18433200_30547.cpp:16:25: error: 'Console' was not declared in this scope
             while((line=Console.ReadLine())!=null)
                         ^
0_0_18433200_30547.cpp:16:46: error: 'null' was not declared in this scope
             while((line=Console.ReadLine())!=null)
                                              ^
0_0_18433200_30547.cpp:18:21: error: 'Convert' was not declared in this scope
                 n = Convert.ToInt32(line);
                     ^
0_0_18433200_30547.cpp:26:63: error: request for member 'ToString' in '(((((double)n * a0) + an_1) - c) / (double)(n + 1))', which is of non-class type 'double'
                 Console.WriteLine(((n * a0 + an_1 - c)/(n+1)).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-11-18 06:44:16, Gzip enabled