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_14790279_20631.cpp:1:7: error: expected nested-name-specifier before 'System'
 using System;
       ^
0_0_14790279_20631.cpp:2:7: error: expected nested-name-specifier before 'System'
 using System.Collections.Generic;
       ^
0_0_14790279_20631.cpp:3:7: error: expected nested-name-specifier before 'System'
 using System.Linq;
       ^
0_0_14790279_20631.cpp:4:7: error: expected nested-name-specifier before 'System'
 using System.Text;
       ^
0_0_14790279_20631.cpp:5:7: error: expected nested-name-specifier before 'System'
 using System.Threading.Tasks;
       ^
0_0_14790279_20631.cpp:11:26: error: 'string' has not been declared
         static void Main(string[] args)
                          ^
0_0_14790279_20631.cpp:11:35: error: expected ',' or '...' before 'args'
         static void Main(string[] args)
                                   ^
0_0_14790279_20631.cpp:29:5: error: expected ';' after class definition
     }
     ^
0_0_14790279_20631.cpp: In static member function 'static void ACM::Program::Main(int*)':
0_0_14790279_20631.cpp:13:13: error: 'string' was not declared in this scope
             string line;
             ^
0_0_14790279_20631.cpp:14:20: error: expected primary-expression before ']' token
             string[] p;
                    ^
0_0_14790279_20631.cpp:16:21: error: 'line' was not declared in this scope
             while ((line= Console.ReadLine())!=null)
                     ^
0_0_14790279_20631.cpp:16:27: error: 'Console' was not declared in this scope
             while ((line= Console.ReadLine())!=null)
                           ^
0_0_14790279_20631.cpp:16:48: error: 'null' was not declared in this scope
             while ((line= Console.ReadLine())!=null)
                                                ^
0_0_14790279_20631.cpp:18:17: error: 'p' was not declared in this scope
                 p = line.Split(' ');
                 ^
0_0_14790279_20631.cpp:19:22: error: expected primary-expression before 'double'
                 a1 = double.Parse(p[0]);
                      ^
0_0_14790279_20631.cpp:20:22: error: expected primary-expression before 'double'
                 a2 = double.Parse(p[1]);
                      ^
0_0_14790279_20631.cpp:21:22: error: expected primary-expression before 'double'
                 b1 = double.Parse(p[2]);
                      ^
0_0_14790279_20631.cpp:22:22: error: expected primary-expression before 'double'
                 b2 = double.Parse(p[3]);
                      ^
0_0_14790279_20631.cpp:24:31: error: 'Math' was not declared in this scope
                 int a = (int)(Math.Sqrt(sum) * 100);
                               ^


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-25 13:00:08, Gzip enabled